Skip to content
Fencer Vulns
medium 5.9

CVE-2025-8869 json

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

published 2025-09-24 13 mo ago modified 2026-09-26 44 d ago also EUVD-2025-30961 , GHSA-4xh5-x5gv-qwph , PYSEC-2026-1795

cvss
5.9
version 4.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 42%
public exploits
0
none 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. 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.

Patch / fix

  • pypi pip 25.3
  • Python Packaging Authority pip 25.3
  • python-pip Debian 14 25.3+dfsg-1

debian advisories DEBIAN-CVE-2025-8869

  • python-pip Azure Linux 3.0 24.2-4

azure linux advisories AZL-67788

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-8869 updated cvss 5.3

pip: pip missing checks on symbolic link extraction

  • Red Hat Migration Toolkit for Virtualization mtv-candidate/mtv-rhel9-operator, mtv-candidate/mtv-validation-rhel9, mtv-candidate/mtv-must-gather-rhel8, mtv-candidate/mtv-rhv-populator-rhel8, mtv-candidate/mtv-openstack-populator-rhel9, mtv-candidate/mtv-populator-controller-rhel9, +8 more Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9, openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 Red Hat OpenShift Service Mesh 3 openshift-service-mesh/kiali-rhel9, openshift-service-mesh/istio-cni-rhel9, openshift-service-mesh/istio-pilot-rhel9, openshift-service-mesh/kiali-ossmc-rhel9, openshift-service-mesh/istio-proxyv2-rhel9, openshift-service-mesh/istio-rhel9-operator, +5 more Red Hat AI Inference Server rhaiis/vllm-tpu-rhel9, rhaiis/vllm-cuda-rhel9, rhaiis/vllm-rocm-rhel9, rhaiis-preview/vllm-cuda-rhel9 Red Hat Ansible Automation Platform 2 automation-controller, ansible-automation-platform-tech-preview/automation-dashboard-rhel9 Red Hat Ansible Automation Platform Ansible Core 2 ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9
    +14 more products
    Red Hat Developer Hub 1 rhdh/rhdh-hub-rhel9 Red Hat Discovery 2 discovery/discovery-server-rhel9 Red Hat Enterprise Linux 8 rhel8/pcp, ubi8/python-36, ubi8/python-39, rhel8/python-36, rhel8/python-39, ubi8/python-311, +6 more Red Hat Enterprise Linux 9 ubi9/python-39, rhel9/python-39, ubi9/python-311, ubi9/python-312, rhel9/python-311, rhel9/python-312, +3 more Red Hat Enterprise Linux 10 rhel10/flatpak-sdk, ubi10/python-312-minimal, rhel10/python-312-minimal Red Hat Enterprise Linux AI (RHEL AI) rhelai1/bootc-amd-rhel9, rhelai1/bootc-intel-rhel9, rhelai1/bootc-nvidia-rhel9, rhelai1/bootc-azure-amd-rhel9, rhelai1/instructlab-amd-rhel9, rhelai1/bootc-aws-nvidia-rhel9, +4 more Red Hat OpenShift AI (RHOAI) rhoai/odh-feast-operator-rhel9, rhoai/odh-feature-server-rhel9, rhoai/odh-llama-stack-core-rhel9, rhoai/odh-training-operator-rhel8, rhoai/odh-modelmesh-runtime-adapter-rhel8, rhoai/odh-modelmesh-runtime-adapter-rhel9, +2 more Red Hat OpenShift Container Platform 4 openshift4/cnf-tests-rhel8, openshift4/ose-ironic-rhel9, openshift4/ose-ironic-agent-rhel9, openshift4/ose-ansible-rhel9-operator, openshift4/ose-dpu-intel-ipu-vsp-rhel9, openshift4/ose-dpu-intel-ipu-p4sdk-rhel9 Red Hat OpenShift Dev Spaces devspaces/udi-rhel8, devspaces/udi-rhel9, devspaces/udi-base-rhel9 Red Hat OpenShift GitOps openshift-gitops-1/dex-rhel8, openshift-gitops-1/gitops-rhel8, openshift-gitops-1/must-gather-rhel8, openshift-gitops-1/argocd-agent-rhel8, openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/console-plugin-rhel8, +2 more Red Hat Quay 3 quay/quay-rhel8 Red Hat Satellite 6 satellite/iop-advisor-engine-rhel9 Red Hat Trusted Artifact Signer rhtas/segment-reporting-rhel9 Red Hat Service Telemetry Framework 1.5 stf/sg-core-rhel9, stf/sg-bridge-rhel9, stf/smart-gateway-rhel9-operator, stf/prometheus-webhook-snmp-rhel8, stf/prometheus-webhook-snmp-rhel9, stf/service-telemetry-rhel9-operator
    affected: workaround, no fix available “Fix deferred”
  • Red Hat OpenShift AI 3.0 rhai/base-image-cpu-rhel9 1793042072, rhai/base-image-cpu-rhel9 1793329709, rhai/base-image-cuda-rhel9 1793042067, rhai/base-image-cuda-rhel9 1793328358, rhai/base-image-rocm-rhel9 1793041981
    fixed: vendor fix RHSA-2026:94459

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
12 mo ago

Exploit prediction

0.49% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 5.9 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
CNA 4.0 5.9 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected packages

ecosystem package affected fixed in
pypi pip
<25.3
25.3

Affected products

  • Python Packaging Authority pip

Classification

Weakness
  • CWE-59 Improper Link Resolution Before File Access

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.