CVE-2026-104843: uv: Path traversal on Windows through wheel extraction
Impact
In versions of uv from 0.12.7 to 0.12.18 on Windows, uv could be induced into writing a file outside of the installation prefix during wheel installation.
A malicious wheel could use this to place an executable outside of the intended environment, including in a directory already present on the user's PATH.
This vulnerability only affects Windows hosts; no other platforms are affected.
Patches
uv 0.12.18 and newer address this vulnerability. Users are encouraged to upgrade to 0.12.18.
Workarounds
There is no workaround other than upgrading to uv 0.12.18.
Other sources
uv is a Python package and project manager written in Rust. From 0.12.7 until 0.12.18, uv wheel extraction on Windows can process a malicious wheel in a way that writes a file outside the installation prefix, including an executable in a directory already present on the user's PATH. Non-Windows hosts are not affected. This issue is fixed in version 0.12.18.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rust/uvto a version that resolves this vulnerability.Fixed in 0.12.18 - Upgrade
Upgrade
pip/uvto a version that resolves this vulnerability.Fixed in 0.12.18 - Upgrade
Upgrade
uvto a version that resolves this vulnerability.Fixed in 0.12.18
Event History
Frequently Asked Questions
Which installations are affected?
Only uv running on Windows is affected. The vulnerable versions are 0.12.7 through versions before 0.12.18; non-Windows hosts are not affected.
What does an attacker need to exploit this issue?
An attacker needs a malicious Python wheel to be processed by uv on Windows. The crafted wheel can cause a file to be written outside the intended installation prefix, including an executable in a directory already on the user's PATH.
Is user interaction required?
Yes. The CVSS vector indicates user interaction is required, meaning a user must initiate processing of the malicious wheel.
What should teams do if they use uv on Windows?
Upgrade uv to version 0.12.18. Until upgraded, avoid installing or processing untrusted wheels with affected Windows versions.