CVE-2025-8869Fallback tar extraction in pip doesn't check symbolic links point to extraction directory
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | python-pip | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | python-pip | Fix pending | UBUNTU-CVE-2025-8869 | |
| Ubuntu 18.04 | python-pip | Fix pending | UBUNTU-CVE-2025-8869 | |
| Ubuntu 16.04 | python-pip | Fix pending | UBUNTU-CVE-2025-8869 | |
| Ubuntu 14.04 | python-pip | Fix pending | UBUNTU-CVE-2025-8869 | |
| Debian 14 | python-pip | Fixed | 25.3+dfsg-1 | DEBIAN-CVE-2025-8869 |
| Debian 13 | python-pip | Fix pending | DEBIAN-CVE-2025-8869 | |
| Debian 12 | python-pip | Fix pending | DEBIAN-CVE-2025-8869 | |
| PyPI library | pip | Fixed | 25.3 | PYSEC-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.
- Python Packaging Authority pip: affected: before 25.3; fixed in
25.3
Vendor advisories:
- https://github.com/pypa/pip/pull/13550 (patch)
- https://mail.python.org/archives/list/security-announce@python.org/thread/IF5A3GCJY3VH7BV… (vendor-advisory)
References
- https://github.com/pypa/pip/pull/13550
- https://mail.python.org/archives/list/security-announce@python.org/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN/
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.