CVE-2025-8869
Python vulnerability analysis and mitigation

Overview

CVE-2025-8869 affects pip's tar archive extraction functionality when used with Python versions that don't implement PEP 706. The vulnerability was discovered and disclosed on September 24, 2025, impacting pip's fallback implementation of tar extraction. The issue occurs when extracting tar archives where symbolic links may point outside the extraction directory, potentially leading to security risks (Python Security Announce).

Technical details

The vulnerability exists in pip's fallback implementation for handling symbolic links during tar extraction on Python versions without PEP 706 support. When extracting a tar archive, pip may fail to properly validate whether symbolic links point to locations within the intended extraction directory. The issue has been assigned a CVSS v4.0 Base Score of 5.9 (MEDIUM) with vector string 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 (NVD).

Impact

The vulnerability could allow attackers to create malicious tar archives that, when extracted, establish symbolic links pointing to unauthorized locations outside the intended extraction directory. This could potentially lead to security issues during package installation processes (Python Security Announce).

Mitigation and workarounds

Several mitigation options are available: 1) Upgrade to a version of pip that includes the fix, 2) Upgrade to a Python version that implements PEP 706 (Python >=3.9.17, >=3.10.12, >=3.11.4, or >=3.12), 3) Apply the patch available in the GitHub pull request, or 4) Follow the best practice of inspecting source distributions (sdists) before installation (Python Security Announce).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-9906HIGH8.6
  • PythonPython
  • keras
NoYesSep 19, 2025
CVE-2025-59420HIGH7.5
  • PythonPython
  • python-authlib
NoYesSep 22, 2025
CVE-2025-8869MEDIUM5.9
  • PythonPython
  • rhel8/flatpak-runtime
NoYesSep 24, 2025
CVE-2025-40843MEDIUM5.9
  • PythonPython
  • codechecker
NoYesSep 22, 2025
CVE-2025-55178MEDIUM5.3
  • PythonPython
  • llama-stack
NoYesSep 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management