Skip to content
OpenAdvisories

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

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

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS python-pip No fix yet —

Amazon Linux

ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Azure Linux 3 python-pip 24.2-4 —

Wolfi

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
PyPI pip < 25.3 25.3 GHSA-4xh5-x5gv-qwph

Advisories 5

References