# 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.

- Web page: https://patchblox.com/security/cve/CVE-2025-8869
- Priority: Routine
- CVSS: n/a (Moderate)
- EPSS: 0.0049
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 24, 2025
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-8869

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-pip Debian 14 | 25.3+dfsg-1 | [DEBIAN-CVE-2025-8869](https://patchblox.com/security/data/fix/linux/debian-cve-2025-8869.md) | Sep 24, 2025 |
| Linux | python3-pip amzn 2023 | 21.3.1-2.amzn2023.0.14 | [ALAS2023-2025-1216](https://patchblox.com/security/data/fix/linux/alas2023-2025-1216.md) | Oct 14, 2025 |
| Linux | python3-pip-wheel amzn 2023 | 21.3.1-2.amzn2023.0.14 | [ALAS2023-2025-1216](https://patchblox.com/security/data/fix/linux/alas2023-2025-1216.md) | Oct 14, 2025 |
| Linux | python3.11-pip amzn 2023 | 22.3.1-2.amzn2023.0.8 | [ALAS2023-2025-1211](https://patchblox.com/security/data/fix/linux/alas2023-2025-1211.md) | Oct 14, 2025 |
| Linux | python3.11-pip-wheel amzn 2023 | 22.3.1-2.amzn2023.0.8 | [ALAS2023-2025-1211](https://patchblox.com/security/data/fix/linux/alas2023-2025-1211.md) | Oct 14, 2025 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
