CVE-2025-8869 Details
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.
A vulnerability exists in pip's fallback method for extracting tar archives, specifically in Python versions that do not support PEP 706. When using this fallback, pip may fail to verify whether symbolic links lead into the extraction directory. This oversight could potentially be exploited by a source distribution (sdist) containing malicious symlinks. In contrast, pip operates securely in Python versions that implement PEP 706, as it bypasses the vulnerable fallback code. The issue arises from the tarfile module's handling of symlinks, which can be exploited if not properly checked.
Upgrade to a version of pip that includes the fix for this vulnerability, such as the upcoming 25.3 release. Additionally, upgrade to a Python version that supports PEP 706, specifically Python 3.9.17, 3.10.12, 3.11.4, or 3.12. If an upgrade is not possible, inspect source distributions for malicious symlinks before installation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 24, 2025CISA-ADP
Assessed Oct 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html | CVE | |
| https://github.com/pypa/pip/pull/13550 | [email protected] | Issue TrackingVendor |
| https://mail.python.org/archives/list/[email protected]/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN/ | [email protected] | AdvisoryMailing ListRemedyVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| pip | All versions |
CPE
Remediation
| |
| Python | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 26, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 24, 2025 | New CVE Received | [email protected] |
Volerion