CVE-2026-8643

pip can extract console_scripts and gui_scripts outside installation directory

State
Published
Severity
4.1 Medium
Published
Jun 1, 2026
Updated
Sep 16, 2026
Reserved
May 14, 2026

Read the record on cve.org

Description

pip would treat console_scripts and gui_scripts as paths instead of file names without sanitizing the resolved absolute path to the installation directory, leading to entry points being installed outside the installation directory.

Scores

CVSSScoreVectorSource
4.04.1 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NPSF
3.18.0 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:Hredhat-SADP

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
pipPython Packaging Authority
  • 24.0 to before 26.1.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.