CVE catalog

CVE-2025-8869

python-pip: CVE-2025-8869

[CVE catalog]

Severity
Medium · CVSS 5.9CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.47% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-pipsid26.2.2+dfsg-1fixed
Debianpython-pipforky26.2.2+dfsg-1fixed
Debianpython-piptrixie25.1.1+dfsg-1vulnerable
Debianpython-pipbookworm23.0.1+dfsg-1vulnerable
PyPIpipNot reported25.3fixed
Ubuntupython-pippro18.1-5vulnerable
Ubuntupython-pippro18.1-5build1vulnerable
Ubuntupython-pippro18.1-5ubuntu1vulnerable
Ubuntupython-pippro20.0.2-2vulnerable
Ubuntupython-pippro20.0.2-4vulnerable
Ubuntupython-pippro20.0.2-5vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.1vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.3vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.4vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.5vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.6vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.7vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.8vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.9vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.10vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.10+esm2vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.11vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.11+esm2vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.11+esm3vulnerable
Ubuntupython-pippro20.0.2-5ubuntu1.11+esm4vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-pipsourcesid25.3+dfsg-1not yet assignedNot reported[1116336]
Debianpython-pipsourceforky25.3+dfsg-1not yet assignedNot reported[1116336]
Debianpython-pipsourcetrixie(unfixed)not yet assignedNot reported[1116336]
Debianpython-pipsourcebookworm(unfixed)not yet assignedNot reported[1116336]
PyPIpipPyPINot reported25.3Not reportedGHSA-4XH5-X5GV-QWPHNot reported

[Debian bug #1116336]

Notes

[trixie] python-pip: Minor issue [bookworm] python-pip: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-pip]Affected

    Source package: [python-pip]

    Details (2)
    • 23.0.1+dfsg-1 · all · bookworm

      Affected

      dsa · python-pip · debian · bookworm; dsa · python-pip · debian · 12

    • 23.0.1+dfsg-1 · all · bookworm

      Affected

      dsa · python-pip · debian · bookworm; dsa · python-pip · debian · 12

  • [python3-pip-whl]Affected

    Source package: [python-pip]

    Details (2)
    • 23.0.1+dfsg-1 · all · bookworm

      Affected

      dsa · python-pip · debian · bookworm; dsa · python-pip · debian · 12

    • 23.0.1+dfsg-1 · all · bookworm

      Affected

      dsa · python-pip · debian · bookworm; dsa · python-pip · debian · 12

[Debian 13 (Trixie)]

  • [python3-pip]Affected

    Source package: [python-pip]

    Details (2)
    • 25.1.1+dfsg-1 · all · trixie

      Affected

      dsa · python-pip · debian · 13

    • 25.1.1+dfsg-1 · all · trixie

      Affected

      dsa · python-pip · debian · 13

  • [python3-pip-whl]Affected

    Source package: [python-pip]

    Details (2)
    • 25.1.1+dfsg-1 · all · trixie

      Affected

      dsa · python-pip · debian · 13

    • 25.1.1+dfsg-1 · all · trixie

      Affected

      dsa · python-pip · debian · 13

Observed:

References