Home / Python Packaging Authority / pip / CVE-2025-8869
CVE-2025-8869: is it exploited, and which versions of Python Packaging Authority pip are affected and fixed?
CVE-2025-8869 is a link following (a symlink lets an attacker reach other files) vulnerability in Python Packaging Authority pip. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: pip before 25.3 (GitHub advisory GHSA-4xh5-x5gv-qwph). Fixed in 25.3 (GitHub advisory GHSA-4xh5-x5gv-qwph). Severity: Medium (5.9, CVSS 4.0, from PSF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:17 UTC.
What is CVE-2025-8869?
Fallback 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.
From the CVE record by PSF, last updated November 3, 2025, 17:45 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Python Packaging Authority | pip | before 25.3 | 25.3 |
As the CVE record by PSF states it, last updated November 3, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | pip | < 25.3 | 25.3 | GHSA-4xh5-x5gv-qwph |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 19, 2025. Summary: pip's fallback tar extraction doesn't check symbolic links point to extraction directory.
How severe is CVE-2025-8869?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N | PSF |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-8869 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, October 16, 2025)
- EPSS
- 0.51% probability of exploitation activity in the next 30 days, percentile 45.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-59 Improper Link Resolution Before File Access
Where are the vendor advisories and references?
- https://github.com/pypa/pip/pull/13550 patch
- https://mail.python.org/archives/list/[email protected]/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN/ vendor-advisory
- https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html
When was it published, and where is the official record?
- Reserved
- August 11, 2025
- Published
- September 24, 2025, 14:56 UTC
- CVE record updated
- November 3, 2025, 17:45 UTC by PSF
- NVD
- Deferred, last modified September 26, 2026, 00:10 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:17 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect pip?
- Nov 24, 2026CVE-2026-136440 Python Packaging Authority pip: incorrect permissions on a critical resource
- Jul 29, 2026CVE-2026-13346 Python Packaging Authority pip: absolute Path Traversal
- Jun 1, 2026CVE-2026-8643 Python Packaging Authority pip: path traversal (reading or writing files outside the intended folder)
- Apr 20, 2026CVE-2026-3219 Python Packaging Authority pip: unrestricted file upload
- Feb 2, 2026CVE-2026-1703 Python Packaging Authority pip: path traversal (reading or writing files outside the intended folder)
Questions about CVE-2025-8869
Is CVE-2025-8869 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.51% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Python Packaging Authority pip are affected by CVE-2025-8869?
pip before 25.3, per the GitHub advisory GHSA-4xh5-x5gv-qwph. The tables above give every range the sources list.
Which version fixes CVE-2025-8869?
25.3, per the GitHub advisory GHSA-4xh5-x5gv-qwph. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-8869?
Medium (5.9, CVSS 4.0, from PSF). The severity table above shows each score with its source.
Where is the official record of CVE-2025-8869?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.