CVE-2026-13346
Received Received - Intake

Path Traversal in pip Package Manager

Vulnerability report for CVE-2026-13346, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-29

Last updated on: 2026-07-29

Assigner: Python Software Foundation

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-29
Last Modified
2026-07-29
Generated
2026-07-30
AI Q&A
2026-07-30
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
python pip *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-36 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that is outside of that directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

pip incorrectly handles doubly-encoded package URLs from indexes, allowing files to be installed to arbitrary disk locations even when installing wheels. This requires downloading or installing a package from a malicious index to succeed.

Detection Guidance

This vulnerability can be detected by checking pip logs for suspicious package installations or downloads. Look for packages installed from untrusted indexes or with doubly-encoded URLs. Review pip configuration files for untrusted index URLs.

Impact Analysis

An attacker could trick pip into installing files outside intended directories, potentially overwriting system files or executing malicious code if combined with other vulnerabilities. Only affects users running pip download with --only-binary.

Mitigation Strategies

Avoid using the `--only-binary` option with pip download from untrusted indexes. Only install packages from trusted package indexes. Regularly audit installed packages and their sources. Update pip to the latest version if a patch is available.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-13346. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart