CVE-2025-8869

Fallback tar extraction in pip doesn't check symbolic links point to extraction directory

CVE-2025-8869 is fixed in 5 products on 1 platform, first by DEBIAN-CVE-2025-8869, released September 24, 2025. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
n/a
Moderate
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0049
42nd percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
python-pip · Debian 14 25.3+dfsg-1 DEBIAN-CVE-2025-8869 Sep 24, 2025
python3-pip · amzn 2023 21.3.1-2.amzn2023.0.14 ALAS2023-2025-1216 Oct 14, 2025
python3-pip-wheel · amzn 2023 21.3.1-2.amzn2023.0.14 ALAS2023-2025-1216 Oct 14, 2025
python3.11-pip · amzn 2023 22.3.1-2.amzn2023.0.8 ALAS2023-2025-1211 Oct 14, 2025
python3.11-pip-wheel · amzn 2023 22.3.1-2.amzn2023.0.8 ALAS2023-2025-1211 Oct 14, 2025

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.