Fallback tar extraction in pip doesn't check symbolic links point to extraction directory
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Python Packaging Authority | pip | unaffected |
|
No data.
No data.
| Vendor | Product | Versions |
|---|---|---|
| Python | Pip | — |
| Python | Python | — |
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-4348-1 | python-pip security update |
EUVD |
EUVD-2025-30961 | pip's fallback tar extraction doesn't check symbolic links point to extraction directory |
Github GHSA |
GHSA-4xh5-x5gv-qwph | pip's fallback tar extraction doesn't check symbolic links point to extraction directory |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.493% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Python
Python pip Python python |
|
| Vendors & Products |
Python
Python pip Python python |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-22 | |
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Fallback tar extraction in pip doesn't check symbolic links point to extraction directory | |
| References |
| |
| Metrics |
cvssV4_0
|