Skip to content

Path traversal on Windows through wheel extraction

Moderate
woodruffw published GHSA-2cv4-cqwr-gwf7 Sep 23, 2026

Package

pip uv (pip)

Affected versions

>= 0.12.7, < 0.12.18

Patched versions

>= 0.12.18
cargo uv (Rust)
>= 0.12.7, < 0.12.18
>= 0.12.18

Description

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.

Severity

Moderate

CVE ID

CVE-2026-104843

Weaknesses

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

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. Learn more on MITRE.

Credits