CVE-2025-8869: Python Packaging Authority pip · Vulnerability
Affects Python Packaging Authority pipSource CVE Database V5
Not known to be exploited · CVSS 5.9 Medium.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 40% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
- brew-python@3.11-cve-2025-8869
- homebrew
- brew-python@3.12-cve-2025-8869
- brew-python-freethreading-cve-2025-8869
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Packaging Authority pip | Affected
| Fixed in– |
AI-suggested
European organizations should implement a multi-layered mitigation strategy: 1) Upgrade pip to the latest fixed version that addresses this vulnerability. 2) Upgrade Python interpreters to versions implementing PEP 706 (Python >=3.9.17, >=3.10.12, >=3.11.4, or >=3.12) to avoid fallback to vulnerable tar extraction code. 3) Apply any available patches to pip or the tarfile module if upgrading is not immediately feasible. 4) Enforce strict code review and manual inspection of source distributions (sdists) before installation, especially from untrusted sources. 5) Integrate security scanning tools in CI/CD pipelines to detect malicious package contents or suspicious symbolic links. 6) Educate developers and DevOps teams about the risks of installing packages from unverified sources and the importance of using updated tooling. 7) Monitor Python package repositories and security advisories for updates or emerging exploits related to this vulnerability. These steps go beyond generic advice by emphasizing Python version upgrades, manual inspection, and pipeline integration.
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.