5.6medium
pip absolute path traversal during download from malicious package indexes
- Severity
- 5.6medium CVSS:4.0 by PSF
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PSF
- Also known as
- GHSA-qwm4-qh6w-59xrPYSEC-2026-3721
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Python Packaging Authority pip | before 26.2 | CVE List |
| pip (PyPI) | before 26.2.0, before 26.2 | GitHub Advisory Database, PyPA Advisory Database |
| pypa pip | before 26.2 | NVD |
All scores
| PSF | 5.6medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| PyPA Advisory Database | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
pip manejaría incorrectamente las URLs de paquetes doblemente codificadas de los índices, permitiendo la instalación de archivos en ubicaciones arbitrarias en el disco incluso al instalar wheels. Esta vulnerabilidad requiere descargar o instalar un paquete de un índice de paquetes malicioso para tener éxito; los paquetes maliciosos por sí solos no son capaces de explotar esta vulnerabilidad. Tenga en cuenta que esta vulnerabilidad solo afecta materialmente a los usuarios que ejecutan ’pip download’ con la opción ’--only-binary’, ya que instalar distribuciones de código fuente de un índice no confiable ya es una operación insegura que ejecuta código durante la instalación.
References
| https://github.com/pypa/pip/pull/14110 | fix, issue-tracking, patch, web | |
| https://mail.python.org/archives/list/security-announce@python.org/thread/L2BNQGGVQCEV7DROOORQ7WFKKFF2OOQX/ | advisory, mailing-list, third-party-advisory, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2026/07/29/7 | advisory, mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-13346 | advisory | |
| https://github.com/pypa/pip/commit/10dfb6b9005484578b386f64b9f36982e3dc6679 | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2026-3721.yaml | web | |
| https://github.com/pypa/pip | package | |
| https://mail.python.org/archives/list/security-announce@python.org/thread/L2BNQGGVQCEV7DROOORQ7WFKKFF2OOQX | web | |
| https://github.com/advisories/GHSA-qwm4-qh6w-59xr | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-13346 changed 2026-07-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qwm4-qh6w-59xr changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-13346 changed 2026-10-24 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3721 changed 2026-09-10 | CC-BY-4.0 |