CVE-2025-8869
published medium CVSS 4.0 · 5.9Fallback tar extraction in pip doesn't check symbolic links point to extraction directory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Packaging Authority | — | pip0 to < 25.3 · Other versions: unaffected | Affected | Not stated | PSF |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-3023 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1211 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1216 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | python-pip | Advisory build | 20.3.4-4+deb11u2 | DLA-4348-1 |
| Amazon Linux | AL2 | python-pipnoarch | Listed in advisory | Not stated | ALAS2-2025-3023 |
| Amazon Linux | AL2 | python-pipsrc | Listed in advisory | Not stated | ALAS2-2025-3023 |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | python-pipnoarch | Listed in advisory | Not stated | ALAS2023-2025-1216 |
| Amazon Linux | AL2023 | python-pipsrc | Listed in advisory | Not stated | ALAS2023-2025-1216 |
| Amazon Linux | AL2023 | python3.11-pipnoarch | Listed in advisory | Not stated | ALAS2023-2025-1211 |
| Amazon Linux | AL2023 | python3.11-pipsrc | Listed in advisory | Not stated | ALAS2023-2025-1211 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- PSF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Packaging Authority | pip | 0 to < 25.3 (affected · python)Default: unaffected | PSF · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
3Provider assertions
3PSF · cna
Fallback tar extraction in pip doesn't check symbolic links point to extraction directory
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7bb2cd74abf530c93e212998afb4abe8521dcbbe52d0cc9accc5607bae0761fc
- Ingested
- 23 Sep 2026, 08:59:12 UTC
- Source record
- Official CVE record