CVE-2026-13346

pip absolute path traversal during download from malicious package indexes

State
Published
Severity
5.6 Medium
Published
Jul 29, 2026
Updated
Jul 29, 2026
Reserved
Jun 25, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.05.6 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NPSF

Weaknesses

  • CWE-36 Absolute path traversal

Affected Products

ProductVersions
pipPython Packaging Authority
  • before 26.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.