CVE-2026-13346: CWE-36 Absolute path traversal in Python Packaging Authority pip
pip would incorrectly handle doubly-encoded package URLs from indexes allowing for files to be installed to arbitrary locations on disk even when installing wheels. This vulnerability requires downloading or installing a package from a malicious package index to succeed, malicious packages alone are not able to exploit this vulnerability. Note that this vulnerability only materially impacts users running `pip download` with the `--only-binary` option as installing source distributions from an untrusted index is already an unsafe operation that executes code during install time.
AI Analysis
Technical Summary
The vulnerability in pip involves incorrect processing of doubly-encoded package URLs from package indexes, which can lead to absolute path traversal. This allows an attacker controlling a malicious package index to cause files to be installed to arbitrary locations on the victim's filesystem during wheel installation. The vulnerability requires user interaction to download or install packages from a malicious index and mainly impacts the 'pip download' command when used with the '--only-binary' option. Source distribution installs from untrusted indexes are already unsafe due to code execution risks and are not the focus of this issue. No official patch or remediation level has been provided as of the published date.
Potential Impact
An attacker controlling a malicious package index can exploit this vulnerability to cause pip to install files to arbitrary locations on disk when installing wheels, potentially overwriting or adding files outside the intended installation directory. This could lead to unauthorized file modification or persistence on the affected system. However, exploitation requires the user to download or install packages from a malicious index and use the '--only-binary' option with 'pip download'. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid downloading or installing packages from untrusted or malicious package indexes, especially when using the '--only-binary' option with 'pip download'. Exercising caution with package sources remains critical. No official fix or temporary workaround has been documented yet.
CVE-2026-13346: CWE-36 Absolute path traversal in Python Packaging Authority pip
Description
pip would incorrectly handle doubly-encoded package URLs from indexes allowing for files to be installed to arbitrary locations on disk even when installing wheels. This vulnerability requires downloading or installing a package from a malicious package index to succeed, malicious packages alone are not able to exploit this vulnerability. Note that this vulnerability only materially impacts users running `pip download` with the `--only-binary` option as installing source distributions from an untrusted index is already an unsafe operation that executes code during install time.
CVSS v4.0
Score 5.6medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in pip involves incorrect processing of doubly-encoded package URLs from package indexes, which can lead to absolute path traversal. This allows an attacker controlling a malicious package index to cause files to be installed to arbitrary locations on the victim's filesystem during wheel installation. The vulnerability requires user interaction to download or install packages from a malicious index and mainly impacts the 'pip download' command when used with the '--only-binary' option. Source distribution installs from untrusted indexes are already unsafe due to code execution risks and are not the focus of this issue. No official patch or remediation level has been provided as of the published date.
Potential Impact
An attacker controlling a malicious package index can exploit this vulnerability to cause pip to install files to arbitrary locations on disk when installing wheels, potentially overwriting or adding files outside the intended installation directory. This could lead to unauthorized file modification or persistence on the affected system. However, exploitation requires the user to download or install packages from a malicious index and use the '--only-binary' option with 'pip download'. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid downloading or installing packages from untrusted or malicious package indexes, especially when using the '--only-binary' option with 'pip download'. Exercising caution with package sources remains critical. No official fix or temporary workaround has been documented yet.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-06-25T14:15:08.834Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6a4bfc9c2644c7f8e93eb6
Added to database: 07/29/2026, 18:52:44 UTC
Last enriched: 07/29/2026, 19:10:09 UTC
Last updated: 07/30/2026, 01:24:17 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.