pip is vulnerable to Path Traversal
53
CVE Score
Medium
Path Traversal
pip decodes the URL path twice when determining a link's filename from a package index. A package index can supply a doubly-encoded URL whose decoded filename is treated as an absolute or traversing path, so downloaded files are written to arbitrary locations on disk, even when installing wheels. This lets a malicious index place files outside the intended download or install directory. The fix stops the redundant decoding and treats the derived filename as a single path component.
Upgrade the pip library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you download or install packages from an untrusted package index.
0.0.1 - 26.1.2
Fixed in 26.2.0pip is vulnerable to Path Traversal in versions 0.0.1 - 26.1.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.