CVE-2026-104843: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in astral-sh uv
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.
AI Analysis
Technical Summary
The vulnerability in uv (versions >=0.12.7 <0.12.18) on Windows involves improper limitation of pathname during wheel extraction, enabling a malicious wheel to write files outside the installation prefix. This includes the ability to place executables in directories already on the user's PATH environment variable, which could lead to execution of unauthorized code. Non-Windows platforms are not impacted. The flaw is identified as CWE-22 (Path Traversal) and has a CVSS 4.0 base score of 5.9 (medium severity).
Potential Impact
An attacker who can supply a malicious wheel file to the uv package manager on Windows can cause files, including executables, to be written outside the intended installation directory. This may allow execution of arbitrary code with the privileges of the user running uv. Non-Windows systems are not affected by this vulnerability.
Mitigation Recommendations
Upgrade uv to version 0.12.18 or later, where this path traversal vulnerability is fixed. No other mitigation is indicated or required according to the available data.
CVE-2026-104843: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in astral-sh uv
Description
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.
CVSS v4.0
Score 5.9medium
Affected software
astral-sh
uv
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in uv (versions >=0.12.7 <0.12.18) on Windows involves improper limitation of pathname during wheel extraction, enabling a malicious wheel to write files outside the installation prefix. This includes the ability to place executables in directories already on the user's PATH environment variable, which could lead to execution of unauthorized code. Non-Windows platforms are not impacted. The flaw is identified as CWE-22 (Path Traversal) and has a CVSS 4.0 base score of 5.9 (medium severity).
Potential Impact
An attacker who can supply a malicious wheel file to the uv package manager on Windows can cause files, including executables, to be written outside the intended installation directory. This may allow execution of arbitrary code with the privileges of the user running uv. Non-Windows systems are not affected by this vulnerability.
Mitigation Recommendations
Upgrade uv to version 0.12.18 or later, where this path traversal vulnerability is fixed. No other mitigation is indicated or required according to the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-02T14:38:43.243Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abfd1dda43b0b3b89d26aad
Added to database: 10/02/2026, 15:46:37 UTC
Last enriched: 10/02/2026, 16:01:21 UTC
Last updated: 10/03/2026, 03:09:55 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.