CVE-2026-104843: Uv Path Traversal Vulnerability
MODERATECVE-2026-104843 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Uv libraries in the PyPI ecosystem. The issue involves path traversal on windows through wheel extraction. Remediation is available by upgrading affected packages to version 0.12.18.
CVE-2026-104843 at a Glance
How to Fix CVE-2026-104843
To remediate this vulnerability, upgrade all affected Uv dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install uv>=0.12.18
Upgrade uv to 0.12.18
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show uv
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-104843, inspect your installed packages using pip:
pip show uv
Analyze the terminal output to locate any version of Uv in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.18), your application is affected.
Note: The pip show uv command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Uv, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-104843 Affected Uv Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
uv
|
PyPI |
≥ 0.12.7
< 0.12.18
|
0.12.18
|
|
uv
|
crates.io |
≥ 0.12.7
< 0.12.18
|
0.12.18
|
References
Frequently Asked Questions
What is CVE-2026-104843?
Which Uv versions are affected?
What version fixes CVE-2026-104843?
Is uv affected?
What CWE is associated with CVE-2026-104843?
How can I check PyPI dependencies for CVE-2026-104843?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2cv4-cqwr-gwf7",
"modified" : "2026-10-05T23:42:09Z",
"published" : "2026-10-05T23:42:09Z",
"aliases" : [ "CVE-2026-104843" ],
"summary" : "uv: Path traversal on Windows through wheel extraction",
"details" : "### Impact\n\nIn 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.\n\nA 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. \n\nThis vulnerability only affects Windows hosts; no other platforms are affected.\n\n### Patches\n\nuv 0.12.18 and newer address this vulnerability. Users are encouraged to upgrade to 0.12.18.\n\n### Workarounds\n\nThere is no workaround other than upgrading to uv 0.12.18.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "uv"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.12.7"
}, {
"fixed" : "0.12.18"
} ]
} ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "uv"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.12.7"
}, {
"fixed" : "0.12.18"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/astral-sh/uv/security/advisories/GHSA-2cv4-cqwr-gwf7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-104843"
}, {
"type" : "WEB",
"url" : "https://github.com/astral-sh/uv/pull/21923"
}, {
"type" : "WEB",
"url" : "https://github.com/astral-sh/uv/commit/67169645278ce082638d619beefa6d062540843b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/astral-sh/uv"
}, {
"type" : "WEB",
"url" : "https://github.com/astral-sh/uv/releases/tag/0.12.18"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-05T23:42:09Z",
"nvd_published_at" : "2026-10-02T16:16:46Z"
}
}