{"id":"CVE-2025-8869","aliases":["CVE-2025-8869","GHSA-4xh5-x5gv-qwph","PYSEC-2026-1795"],"related":[],"kind":"vulnerability","state":"published","title":"Fallback tar extraction in pip doesn't check symbolic links point to extraction directory","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 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.","source":"cvelist"},{"lang":"es","text":"Al extraer un archivo tar, pip podría no verificar que los enlaces simbólicos apunten al directorio de extracción si el módulo tarfile no implementa PEP 706.\nTenga en cuenta que actualizar pip a una versión “corregida” para esta vulnerabilidad no corrige todas las vulnerabilidades conocidas que se remedian usando una versión de Python que implementa PEP 706.\n\nTenga en cuenta que esta es una vulnerabilidad en la implementación de reserva de pip para la extracción de tar para versiones de Python que no implementan PEP 706 y, por lo tanto, no son seguras frente a todas las vulnerabilidades en el módulo 'tarfile' de Python. Si está utilizando una versión de Python que implementa PEP 706, entonces pip no utiliza el código de reserva “vulnerable”.\n\nLas mitigaciones incluyen actualizar a una versión de pip que incluya la corrección, actualizar a una versión de Python que implemente PEP 706 (Python >=3.9.17, >=3.10.12, >=3.11.4, o >=3.12), aplicar el parche vinculado, o inspeccionar las distribuciones de origen (sdists) antes de la instalación, como ya es una buena práctica.","source":"nvd"}],"published":"2025-09-24T14:56:56.027Z","modified":"2026-09-26T00:10:00.127Z","severity":{"scorer":"PSF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"PSF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"25.3","status":"affected"}],"vendor":"Python Packaging Authority","product":"pip","package":"pip","repo":"https://github.com/pypa/pip","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"25.3"}],"ecosystem":"PyPI","package":"pip","purl":"pkg:pypi/pip","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"25.3"}],"ecosystem":"PyPI","package":"pip","purl":"pkg:pypi/pip","source":"pysec"}],"references":[{"url":"https://github.com/pypa/pip/pull/13550","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8869","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/pip/commit/f2b92314da012b9fffa36b3f3e67748a37ef464a","tags":["fix","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/pip","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pip.pypa.io/en/stable/news/#v25-2","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pip","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-4xh5-x5gv-qwph","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-16T19:47:29.080Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-8869","url":"https://www.cve.org/CVERecord?id=CVE-2025-8869","licence":"CVE Terms of Use","modified":"2025-11-03T17:45:31.574Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4xh5-x5gv-qwph","url":"https://github.com/advisories/GHSA-4xh5-x5gv-qwph","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:27.949Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-8869","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8869","licence":"Public domain","modified":"2026-09-26T00:10:00.127Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1795","url":"https://osv.dev/vulnerability/PYSEC-2026-1795","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:06.199Z"}],"updatedAt":"2026-11-25T22:59:05.077Z","epss":{"score":0.00513,"percentile":0.45188,"date":"2026-12-01T12:00:22.000Z"}}