---
schema_version: '1.0'
id: security-20260711-41c2a0
url: https://osv.dev/vulnerability/GHSA-4xh5-x5gv-qwph
url_hash: 41c2a0fc1b5c20f1084f07bedf0efd9e1751390c02c48c6cc7966a4f57b8de7c
canonical_url: https://osv.dev/vulnerability/GHSA-4xh5-x5gv-qwph
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2025-8869
- GHSA-4xh5-x5gv-qwph
- severity: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
- pip
- PyPI
lang: en
published_at: '2025-09-24T15:31:14Z'
fetched_at: '2026-07-11T06:37:18Z'
updated_at: '2026-07-11T06:39:54Z'
status: published
content_hash: cd81106acedcf8c38d3d814e23aa58d972315d5d53407d9b4f6807259554da16
license_note: full
summary: pip's fallback tar extraction doesn't check symbolic links point to extraction
  directory
summary_source: rss
summary_en: pip's fallback tar extraction doesn't check symbolic links point to extraction
  directory
entities:
- name: PyTerrier retrieval pipelines
  type: data
- name: Tariq Shaheen
  type: person
key_facts: []
related: []
related_auto:
- name: QueryExplorer
  type: system
  weight: 1.0
- name: Detroit Tigers
  type: organization
  weight: 1.0
title: 'CVE-2025-8869: pip''s fallback tar extraction doesn''t check symbolic links
  point to extraction directory'
---

# CVE-2025-8869: pip's fallback tar extraction doesn't check symbolic links point to extraction directory

## TL;DR
pip's fallback tar extraction doesn't check symbolic links point to extraction directory

## Key Points
- cve / CVE-2025-8869 / GHSA-4xh5-x5gv-qwph / severity: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 / pip / PyPI

## Details
**Severity:** 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
**Advisory:** GHSA-4xh5-x5gv-qwph (CVE-2025-8869)

**Affected (your watchlist):**
- `PyPI:pip` 24.0 → fixed in 25.3 [docker/docker-portal+docker/local+docker/mac]
- `PyPI:pip` 25.0.1 → fixed in 25.3 [docker/docker-graphrag+docker/docker-llmwiki+docker/docker-portal+docker/docker-strands+docker/local+docker/mac]
- `PyPI:pip` 25.1.1 → fixed in 25.3 [docker/docker-mcp]

**Details:**
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.

**References:**
- https://nvd.nist.gov/vuln/detail/CVE-2025-8869
- https://github.com/pypa/pip/pull/13550
- https://github.com/pypa/pip/commit/f2b92314da012b9fffa36b3f3e67748a37ef464a
- https://github.com/pypa/pip
- https://lists.debian.org/debian-lts-announce/2025/10/msg00028.html
- https://mail.python.org/archives/list/security-announce@python.org/thread/IF5A3GCJY3VH7BVHJKOWOJFKTW7VFQEN
- https://pip.pypa.io/en/stable/news/#v25-2

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-4xh5-x5gv-qwph_

## Source
元記事: [CVE-2025-8869: pip's fallback tar extraction doesn't check symbolic links point to extraction directory](https://osv.dev/vulnerability/GHSA-4xh5-x5gv-qwph) — published 2025-09-24T15:31:14Z
