{"id":"CVE-2025-8869","title":"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.\nNote that upgrading pip to a \"fixed\" version for this vulnerability doesn't fix all known…","summary":"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.\nNote that upgrading pip to a \"fixed\" version for this vulnerability doesn't fix all known…","severity":"medium","vendor":"pip","product":"pip","affected":["pip < 25.3"],"patched":["pip 25.3"],"published":"2025-09-24","updated":"2026-09-26","sourceUpdated":"2026-09-26T00:10:00.127","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-8869","references":[{"url":"https://github.com/pypa/pip/pull/13550","label":"cna@python.org"},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN/","label":"cna@python.org"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8869"},{"url":"https://github.com/pypa/pip/commit/f2b92314da012b9fffa36b3f3e67748a37ef464a"},{"url":"https://github.com/pypa/pip"},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN"},{"url":"https://pip.pypa.io/en/stable/news/#v25-2"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-8869.json"},{"url":"https://access.redhat.com/security/cve/CVE-2025-8869"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2397852"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-8869"}],"tags":["nvd","osv","pip","csaf","vex","red-hat"],"epss":0.00469,"epssPercentile":0.40426,"aliases":["GHSA-4xh5-x5gv-qwph","PYSEC-2026-1795"],"ecosystem":"pip","ingestedAt":"2026-07-08T18:25:45.734Z","cvss":5.3,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","cvssSource":"vendor","cwe":["CWE-22"],"slug":"CVE-2025-8869","body":"## Overview\n\nWhen extracting a tar archive pip may not check symbolic links point into the extraction directory if the tarfile module doesn't implement PEP 706.\nNote 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.\n\nNote that this is a vulnerability in pip's fallback implementation of tar extraction for Python versions that don't implement PEP 706\nand therefore are not secure to all vulnerabilities in the Python 'tarfile' module. If you're using a Python version that implements PEP 706\nthen pip doesn't use the \"vulnerable\" fallback code.\n\nMitigations 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),\napplying the linked patch, or inspecting source distributions (sdists) before installation as is already a best-practice.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Package advisory (CVE-2025-8869)\n\nAffected packages:\n\n- `pip < 25.3`\n\nPatched in:\n\n- `pip 25.3`\n\nSource: https://osv.dev/vulnerability/GHSA-4xh5-x5gv-qwph\n\n## Vendor advisories\n\n- **Red Hat VEX** · Moderate · affected: Migration Toolkit for Virtualization, OpenShift Lightspeed, OpenShift Service Mesh 3, Red Hat AI Inference Server, Red Hat Ansible Automation Platform 2, Red Hat Ansible Automation Platform Ansible Core 2, … · no fix planned: Migration Toolkit for Virtualization, OpenShift Lightspeed, OpenShift Service Mesh 3, Red Hat AI Inference Server, … · updated 2026-10-15 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-8869.json)","depth":"sunlit","depthScore":29,"depthScoreParts":{"impact":29.2,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":222203,"id":"CVE-2025-8869","ts":1792065067849,"field":"cvss","old":null,"new":"5.3"}]}