Description
When extracting a tar archive pip may not check symbolic links point into the extraction directory if the tarfile module doesn't implement PEP 706.
Note that upgrading pip to a "fixed" version for this vulnerability doesn't fix all known vulnerabilities that are remediated by using a Python version that implements PEP 706.
Note that this is a vulnerability in pip's fallback implementation of tar extraction for Python versions that don't implement PEP 706
and therefore are not secure to all vulnerabilities in the Python 'tarfile' module. If you're using a Python version that implements PEP 706
then pip doesn't use the "vulnerable" fallback code.
Mitigations include upgrading to a version of pip that includes the fix, upgrading to a Python version that implements PEP 706 (Python >=3.9.17, >=3.10.12, >=3.11.4, or >=3.12),
applying the linked patch, or inspecting source distributions (sdists) before installation as is already a best-practice.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Python Packaging Authority | pip | < 25.3 | 25.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-pip | 25.3+dfsg-1 | — |
| Debian 13 | python-pip | No fix yet | — |
| Debian 12 | python-pip | No fix yet | — |
| Debian 11 | python-pip | 20.3.4-4+deb11u2 | DLA-4348-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | python-pip | No fix yet | — |
| Ubuntu Pro 18.04 LTS | python-pip | No fix yet | — |
| Ubuntu Pro 16.04 LTS | python-pip | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | python-pip | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3-pip +1 | 21.3.1-2.amzn2023.0.14 | ALAS2023-2025-1216 |
| Amazon Linux 2023 | python3.11-pip +1 | 22.3.1-2.amzn2023.0.8 | ALAS2023-2025-1211 |
| Amazon Linux 2 | python2-pip +2 | 20.2.2-1.amzn2.0.13 | ALAS2-2025-3023 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-pip | 24.2-4 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | airflow-3-bitnami-compat | No fix yet | — |
| Wolfi rolling | py3-cassandra-medusa | 0.26.0-r0 | — |
| Wolfi rolling | py3-pip +12 | 25.2-r2 | — |
| Wolfi rolling | py3-pip-wheel-bootstrap | 25.3-r0 | — |
| Wolfi rolling | py3.10-virtualenv +3 | 21.5.0-r0 | — |
| Wolfi rolling | reflex | 0.8.14-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pip | < 25.3 | 25.3 | GHSA-4xh5-x5gv-qwph |
Advisories 5
- WID-SEC-2026-1210 Oracle Siebel CRM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 2, 2026
- DLA-4348-1 python-pip - security update Debian Security (DSA / DLA) · Oct 26, 2025
- ALAS2-2025-3023 Moderate: python-pip security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 14, 2025
- ALAS2023-2025-1211 Moderate: python3.11-pip security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 14, 2025
- ALAS2023-2025-1216 Moderate: python-pip security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 14, 2025