# 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.

- **Severity:** Medium 5.6 (`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`)
- **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:** Yes
- **Published:** 29 Jul 2026
- **Updated:** 29 Jul 2026
- **Also known as:** AZL-94335, AZL-94353, BELL-CVE-2026-13346, CLEANSTART-2026-FW80348, CLEANSTART-2026-PH11243, CLEANSTART-2026-SL06718, DEBIAN-CVE-2026-13346, ECHO-7b00-1c82-cbfb, GHSA-qwm4-qh6w-59xr, MINI-2h6f-5ggg-8fm8, MINI-49f9-cw84-7pc6, MINI-63cx-fh3c-m848, MINI-6v5f-2gxx-w53r, MINI-7m5h-6wcf-qgmq, MINI-8vrf-2hjr-v4f5, MINI-946v-j8jp-fwfp, MINI-9xrh-8c96-pm9p, MINI-hm5x-xm7q-h854, MINI-p38g-p539-cqx6, MINI-p6xm-3cxc-8v7p, MINI-rq3v-8f5c-w4pg, OESA-2026-3785, OESA-2026-3786, OESA-2026-3787, OESA-2026-3788, OESA-2026-3941, PYSEC-2026-3721, SUSE-SU-2026:23319-1, SUSE-SU-2026:3588-1, SUSE-SU-2026:3589-1, SUSE-SU-2026:3846-1, SUSE-SU-2026:4030-1, UBUNTU-CVE-2026-13346, openSUSE-SU-2026:11451-1, openSUSE-SU-2026:21643-1

## 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 (Absolute Path Traversal)

## Which versions are affected by CVE-2026-13346?

3 open source packages ship an affected version, including pip. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `pip` | PyPI | All versions | 26.2 |
| `pip` | PyPI | All versions | 26.2.0 |
| `pip` | PyPI | All versions | 26.2.0 |
| `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: 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.

## 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

- [CVE-2018-20225](https://insights.sbomify.com/CVE-2018-20225/): Supply chain in n/a (high 7.8)
- [CVE-2013-1629](https://insights.sbomify.com/CVE-2013-1629/): Improper Input Validation in pip (medium 6.8)
- [CVE-2023-5752](https://insights.sbomify.com/CVE-2023-5752/): Mercurial configuration injectable in repo revision when installing via pip (medium 5.5)
- [CVE-2026-8643](https://insights.sbomify.com/CVE-2026-8643/): pip can extract console_scripts and gui_scripts outside installation directory (medium 4.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-13346 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2026-13346 in the wild and no public exploit code.

Affected packages and fixed versions:
- pip (PyPI): affected all versions; fixed in 26.2
- pip (PyPI): affected all versions; fixed in 26.2.0
- pip (PyPI): affected all versions; fixed in 26.2.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-13346/ (Markdown: https://insights.sbomify.com/CVE-2026-13346/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-13346
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-13346
- OSV: https://osv.dev/vulnerability/CVE-2026-13346

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-13346/
Summaries are generated and may contain mistakes; the official description above is the record.
