CVE-2026-13346pip absolute path traversal during download from malicious package indexes
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.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| pypa | pip | < 26.2 | |
| Python Packaging Authority | pip | < 26.2 |
References and patches
- https://github.com/pypa/pip/pull/14110 patchIssue TrackingPatch
- https://mail.python.org/archives/list/security-announce@python.org/thread/L2BNQGGVQCEV7DROOORQ7WFKKFF2OOQX/ vendor-advisoryMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2026/07/29/7 Mailing ListThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:*< 26.2