---
id: CVE-2025-8869
aliases:
  - GHSA-4xh5-x5gv-qwph
  - PYSEC-2026-1795
title: >-
  pip's fallback tar extraction doesn't check symbolic links point to extraction
  directory
summary: >-
  pip's fallback tar extraction doesn't check symbolic links point to extraction
  directory
severity: medium
vendor: pip
product: pip
ecosystem: pip
affected:
  - pip < 25.3
patched:
  - pip 25.3
published: '2025-09-24'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:27.949321787Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-4xh5-x5gv-qwph'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-8869'
  - url: 'https://github.com/pypa/pip/pull/13550'
  - url: >-
      https://github.com/pypa/pip/commit/f2b92314da012b9fffa36b3f3e67748a37ef464a
  - url: 'https://github.com/pypa/pip'
  - url: 'https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html'
  - url: >-
      https://mail.python.org/archives/list/security-announce@python.org/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN
  - url: 'https://pip.pypa.io/en/stable/news/#v25-2'
tags:
  - osv
  - pip
epss: 0.00469
epssPercentile: 0.39807
ingestedAt: '2026-07-08T18:25:45.734Z'
---

## Overview

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.

## Affected packages

- `pip < 25.3`

## Remediation

Upgrade to a patched release:

- `pip 25.3`
