Path traversal in uv - #VU131957
Published: May 20, 2026
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.