Skip to content

pip

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

CVE-2025-8869Published 24 Sep 2025, 14:56 UTC

Real-world risk

1.9/ 10Low

Routine

If the vulnerable configuration applies to you: 4.2

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.9

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from PSF)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
pipUbiquitous< 25.325.3

What to do

Update to a fixed version: 25.3.

Why this score

FactorValueEvidence×
ImpactMajor data tamperingWrites or changes important data without gaining executionFrom the CVSS vector0.70
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 45), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.315
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.7 × prerequisites 0.315 × threat 0.851.874
  4. Rounded to one decimal between 0.1 and 101.9

How the score works

Exploitation and evidence timeline

  1. 24 Sep 2025 Published
  2. 3 Dec 2026 Risk 1.9 (cvss fallback)

Weakness

No weakness type given.

References

Get alerts for pip

Free email or text alerts when a vulnerability in pip reaches risk 8 or higher. Nothing else.