CVE-2026-13346 pip absolute path traversal during download from malicious package indexes
Attackers can install files to arbitrary locations via malicious indexes when using pip download with --only-binary, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-13346?
CVE-2026-13346 is a medium-severity path traversal vulnerability in Python Packaging Authority pip, published on 29 Jul 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-36
Which versions are affected by CVE-2026-13346?
3 open source packages ship an affected version, including pip. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pip PyPI | All versions | 26.2 |
pip PyPI | All versions | 26.2.0 |
pip PyPI | All versions | 26.2.0 |
Linux distribution packages (10)
python3-pip SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 20.0.2-150400.26.1 |
python3-pip-wheel SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 20.0.2-150400.26.1 |
python-pip SUSE:Linux Enterprise Module for Public Cloud 15 SP4 | All versions | 22.3.1-150400.17.29.1 |
python-pip SUSE:Linux Enterprise Module for Python 3 15 SP7 | All versions | 22.3.1-150400.17.29.1 |
python313-pip SUSE:Linux Enterprise Module for Python 3 15 SP7 | All versions | 24.2-150700.3.3.1 |
python-pip SUSE:Linux Enterprise Server 16.0 | All versions | 25.0.1-160000.6.1 |
python36-pip SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 20.2.4-8.18.1 |
python-pip SUSE:Linux Enterprise Server for SAP applications 16.0 | All versions | 25.0.1-160000.6.1 |
python-pip openSUSE:Leap 16.0 | All versions | 25.0.1-160000.6.1 |
python-pip openSUSE:Tumbleweed | All versions | 26.2-1.1 |
Products include Pypa Pip.
How do I fix CVE-2026-13346?
Upgrade pip to a fixed version for your release line: 26.2 or 26.2.0.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-13346 being exploited?
There is no known exploitation of CVE-2026-13346 in the wild and no public exploit code.
Other vulnerabilities in Python Packaging Authority pip
Sources
Also known as AZL-94335, AZL-94353, BELL-CVE-2026-13346, CLEANSTART-2026-FW80348, CLEANSTART-2026-PH11243, CLEANSTART-2026-SL06718 and 29 more.