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.
Published: 2026-07-29
Score: 5.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

pip incorrectly processes doubly-encoded URLs from a package index, allowing an attacker to specify a destination path that bypasses the usual safety checks and results in a file being installed to an arbitrary location on disk. This can overwrite configuration files, system libraries, or other critical resources, compromising confidentiality, integrity, and availability of the affected system.

Affected Systems

Python Packaging Authority’s pip is affected. No specific product versions were listed in the available data, so any release before the vulnerability was fixed is potentially vulnerable.

Risk and Exploitability

The CVSS score is 5.6, which is considered moderate. The EPSS score of less than 1 % indicates a low likelihood of exploitation at the time of this analysis. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an attacker to host a malicious package index and the victim to run pip download with the --only-binary option, so the threat is limited to users who explicitly download packages from untrusted or unknown indexes.

Generated by OpenCVE AI on August 3, 2026 at 13:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade pip to the most recent release, which removes the vulnerable URL handling logic
  • Avoid running pip download with the --only-binary flag against untrusted or unknown indexes; use official or signed indexes instead
  • Configure pip to trust only known hosts (e.g., with --trusted-host) or to download packages in a controlled environment using --no-index when possible

Generated by OpenCVE AI on August 3, 2026 at 13:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 30 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-22
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:H/A:L'}

threat_severity

Moderate


Wed, 29 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 29 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Pypa
Pypa pip
Vendors & Products Pypa
Pypa pip

Wed, 29 Jul 2026 19:00:00 +0000

Type Values Removed Values Added
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.
Title pip absolute path traversal during download from malicious package indexes
Weaknesses CWE-36
References
Metrics cvssV4_0

{'score': 5.6, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published:

Updated: 2026-07-29T20:21:34.281Z

Reserved: 2026-06-25T14:15:08.834Z

Link: CVE-2026-13346

cve-icon Vulnrichment

Updated: 2026-07-29T20:21:34.281Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-29T19:16:44.267

Modified: 2026-07-30T16:43:03.817

Link: CVE-2026-13346

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-29T18:33:50Z

Links: CVE-2026-13346 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T13:15:05Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-36

    Absolute Path Traversal