Vulnerability · Published Jun 1, 2026 · Assigned by PSF

CVE-2026-8643pip can extract console_scripts and gui_scripts outside installation directory

High 8.0

In plain English

A high-severity path traversal in pip from Python Packaging Authority. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.0High
Exploit odds (30 days)0.3%top 74.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10python3.14-pip25.2-3.el10_2.5ALSA-2026:36193
AlmaLinux:9python3.14-pip25.2-3.el9_8.5ALSA-2026:36315
AlmaLinux:10python3.14-pip-wheel25.2-3.el10_2.5ALSA-2026:36193
AlmaLinux:9python3.14-pip-wheel25.2-3.el9_8.5ALSA-2026:36315
Debian:12python-pipno fix listedDEBIAN-CVE-2026-8643
Debian:13python-pipno fix listedDEBIAN-CVE-2026-8643
Debian:14python-pip26.1.2+dfsg-1DEBIAN-CVE-2026-8643
PyPIpip26.1.2GHSA-wf93-45jw-7689
PyPIpip26.1.2PYSEC-2026-196
Rocky Linux:10python3.14-pip0:25.2-3.el10_2.5RLSA-2026:36193
Rocky Linux:9python3.14-pip0:25.2-3.el9_8.5RLSA-2026:36315
Ubuntu:25.10python-pipno fix listedUBUNTU-CVE-2026-8643
Ubuntu:26.10python-pipno fix listedUBUNTU-CVE-2026-8643

Affected products (as reported)

VendorProductVersions
Python Packaging Authority pip 24.0 – before 26.1.2

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

References