CVE-2026-13346: pip absolute path traversal during download from malicious package indexes

Published Jul 29, 2026
·
Updated

pip absolute path traversal during download from malicious package indexes

Other sources

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.

— MITRE

Affected Software

24 affected componentsFixes available
pip
pypa pip<26.2
IBM Concert Software<=1.0-3.0.0
pip/pip<26.2.0
26.2.0
debian/python-pip<=23.0.1+dfsg-1, <=25.1.1+dfsg-1
26.2.2+dfsg-1
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/pipenv*
ubuntu/python-pip*
ubuntu/pipenv*
ubuntu/python-pip*
ubuntu/pipenv*
ubuntu/python-pip*
ubuntu/pipenv*
ubuntu/python-pip*
ubuntu/pipenv*
ubuntu/python-pip*
All of the following
azurelinux/python-pip<0:25.1.1-23.azl4
0:25.1.1-23.azl4
Microsoft Azure Linux=4.0
All of the following
azurelinux/python-pip<24.2-10
24.2-10
Microsoft Azure Linux=3.0
All of the following
azurelinux/python-virtualenv<20.36.1-6
20.36.1-6
Microsoft Azure Linux=3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/pip to a version that resolves this vulnerability.

    Fixed in 26.2.0
  2. Upgrade

    Upgrade debian/python-pip to a version that resolves this vulnerability.

    Fixed in 26.2.2+dfsg-1
  3. Upgrade

    Upgrade azurelinux/python-pip to a version that resolves this vulnerability.

    Fixed in 0:25.1.1-23.azl4
  4. Upgrade

    Upgrade azurelinux/python-pip to a version that resolves this vulnerability.

    Fixed in 24.2-10
  5. Upgrade

    Upgrade azurelinux/python-virtualenv to a version that resolves this vulnerability.

    Fixed in 20.36.1-6

Event History

Jul 29, 2026
CVE Published
via MITRE·06:33 PM
Data Sourced
via MITRE·06:33 PM
DescriptionWeakness
Data Sourced
via OSV·06:33 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionWeaknessAffected Software
Aug 7, 2026
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
SeverityAffected Software
Aug 20, 2026
Data Sourced
via NVD·01:17 PM
RemedyAffected Software
Updated
via NVD·01:17 PM
Severity
Oct 14, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software
Nov 27, 2026
Updated
via Microsoft·09:14 AM
Severity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-13346?

CVE-2026-13346 has a medium severity rating of 5.6 according to the CVSS scoring.

2

How does CVE-2026-13346 affect pip users?

CVE-2026-13346 allows pip to incorrectly handle doubly-encoded package URLs, potentially leading to the installation of files in arbitrary locations on disk.

3

What are the requirements for exploiting CVE-2026-13346?

To exploit CVE-2026-13346, an attacker must host a malicious package index and the user must download or install a package from that index.

4

How can I mitigate the risk posed by CVE-2026-13346?

To mitigate CVE-2026-13346, avoid installing packages from untrusted or unknown package indexes.

5

When was CVE-2026-13346 published?

CVE-2026-13346 was published on July 29, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203