CVE-2026-13346
JSON

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 packageVersionsReported by
Python Packaging Authority pipbefore 26.2CVE List
pip (PyPI)before 26.2.0, before 26.2GitHub Advisory Database, PyPA Advisory Database
pypa pipbefore 26.2NVD

All scores

PSF5.6medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Classification

CWE-36

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

Sources

SourceRecordLicence
CVE ListCVE-2026-13346 changed 2026-07-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-qwm4-qh6w-59xr changed 2026-09-10CC-BY-4.0
NVDCVE-2026-13346 changed 2026-10-24Public domain
PyPA Advisory DatabasePYSEC-2026-3721 changed 2026-09-10CC-BY-4.0