Advisory record · GHSA-4xh5-x5gv-qwph

pip's fallback tar extraction doesn't check symbolic links point to extraction directory

CVSS 5.9 MediumEPSS 0.0049 · 42nd percentile

Published by the GitHub Advisory Database at 24 Sept 2025, 15:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pipPyPI<25.325.3
Identifiers
GHSA-4xh5-x5gv-qwph · CVE-2025-8869 · PYSEC-2026-1795
Weakness (CWE)
CWE-59
Published
24 Sept 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Pip versions before 25.3 may not check that symbolic links in tar archives point into the extraction directory when running on Python versions that lack PEP 706 support, because pip then uses its own fallback tar extraction code. An attacker who can get a user to install a malicious source distribution could cause files to be written outside the intended directory. Upgrade pip to version 25.3 or later, or use a Python version that implements PEP 706 (3.9.17, 3.10.12, 3.11.4, or 3.12 and later), which avoids the fallback code.

Written 5 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.9 Medium 4.0 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 (PSF)
  • CISA KEV Not listed.
  • EPSS 0.0049, the 42nd percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:34 UTC First seen by agentprime
  2. 31 Oct 2026, 14:34 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.