Path traversal in uv - #VU131957

 

Path traversal in uv - #VU131957

Published: May 20, 2026


Vulnerability identifier: #VU131957
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Astral
Affected software:
uv

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper limitation of a pathname to a restricted directory in entry point generation for console_scripts and gui_scripts when installing a malicious wheel containing a crafted entry point specification. A remote attacker can induce the target into installing a malicious wheel to execute arbitrary code.

The generated executable may be written outside of the environment's scripts directory, including into a directory already present on the user's PATH, which can shadow or overwrite an existing executable.


Remediation

Install security update from vendor's website.

Sources