---
schema_version: '1.0'
id: security-20260711-0a6e6e
url: https://osv.dev/vulnerability/PYSEC-2026-1795
url_hash: 0a6e6e8e9537147cfa60b9ceafa5feaf75e71f495f9be7c3185995fe26aec683
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-1795
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2025-8869
- PYSEC-2026-1795
- 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: '2026-07-07T16:03:05Z'
fetched_at: '2026-07-11T06:37:18Z'
updated_at: '2026-07-11T06:39:54Z'
status: published
content_hash: d4b03ec739ea250667d170f04d59d95867dd4c5ba05eef4ae7d23e11c5b1e973
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 / PYSEC-2026-1795 / 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:** PYSEC-2026-1795 (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
- https://pypi.org/project/pip
- https://github.com/advisories/GHSA-4xh5-x5gv-qwph

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-1795_

## Source
元記事: [CVE-2025-8869: pip's fallback tar extraction doesn't check symbolic links point to extraction directory](https://osv.dev/vulnerability/PYSEC-2026-1795) — published 2026-07-07T16:03:05Z
