pip can extract console_scripts and gui_scripts outside installation directory
CVE-2026-8643Published 1 Jun 2026, 15:01 UTC
Real-world risk
0.9/ 10Low
Routine
If the vulnerable configuration applies to you: 2.1
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| pipUbiquitous | >= 24.0, < 26.1.2 | 26.1.2 |
What to do
Update to a fixed version: 26.1.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 27), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.158
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.1575 × threat 0.850.937
- Rounded to one decimal between 0.1 and 100.9
Exploitation and evidence timeline
- 1 Jun 2026 Published
- 3 Dec 2026 Risk 0.9 (cvss fallback)
Weakness
CWE-22
References
- https://github.com/pypa/pip/pull/14000patch
- https://mail.python.org/archives/list/[email protected]/thread/YV63UET5D3OOJY7O4M5XCVYO2YM4NBYJ/vendor-advisory
- http://www.openwall.com/lists/oss-security/2026/06/01/5
- https://access.redhat.com/security/cve/CVE-2026-8643redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2460927issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-8643.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:42078redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:42079redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:36193redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:36315redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:42144redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:50479redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34374redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:42132redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:54760redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:33313redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34891redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:56347redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:42644redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34772redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34778redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34780redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34773redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34774redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34739redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34752redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34765redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34758redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34756redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34760redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34776redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34748redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34775redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34740redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34749redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34750redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34741redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34777redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:37275redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:60520redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34456redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:37283redhat, vendor-advisory
- CVE-2026-8643 on CVE.org