CVEfocus › CVE database › CVE-2025-8869

CVE-2025-8869Fallback tar extraction in pip doesn't check symbolic links point to extraction directory

CVSS 5.9 MediumEPSS 0.7% (higher than 49% of CVEs)Published 2025-09-24Updated 2025-11-03Assigner: PSF

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.

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
6Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10python-pipNot affected
vulnerable_code_not_present
Ubuntu 20.04python-pipFix pendingUBUNTU-CVE-2025-8869
Ubuntu 18.04python-pipFix pendingUBUNTU-CVE-2025-8869
Ubuntu 16.04python-pipFix pendingUBUNTU-CVE-2025-8869
Ubuntu 14.04python-pipFix pendingUBUNTU-CVE-2025-8869
Debian 14python-pipFixed25.3+dfsg-1DEBIAN-CVE-2025-8869
Debian 13python-pipFix pendingDEBIAN-CVE-2025-8869
Debian 12python-pipFix pendingDEBIAN-CVE-2025-8869
PyPI librarypipFixed25.3PYSEC-2026-1795

What the vendor says

As published in the CVE record by PSF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.