CVE-2026-8643
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-8643 NameCVE-2026-8643 Descriptionpip 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. SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHubβ¦
CVE-2026-8643
| Name | CVE-2026-8643 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1138220 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| python-pip (PTS) | bullseye | 20.3.4-4+deb11u1 | vulnerable |
| bullseye (security) | 20.3.4-4+deb11u2 | vulnerable | |
| bookworm | 23.0.1+dfsg-1 | vulnerable | |
| trixie | 25.1.1+dfsg-1 | vulnerable | |
| forky | 26.1.1+dfsg-1 | vulnerable | |
| sid | 26.1.2+dfsg-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| python-pip | source | (unstable) | 26.1.2+dfsg-1 | 1138220 |
Notes
https://bugzilla.redhat.com/show_bug.cgi?id=2460927
Fixed by: https://github.com/pypa/pip/commit/8eb178480bd1a2b223f509fc430796b265158dfb
Improvement to original fix: https://github.com/pypa/pip/pull/14001
Apply commands
https://bugzilla.redhat.com/show_bug.cgi?id=2460927Fixed by: https://github.com/pypa/pip/commit/8eb178480bd1a2b223f509fc430796b265158dfbImprovement to original fix: https://github.com/pypa/pip/pull/14001
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| β | Affected | β |
Debian Mixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Affected | β |
| sid | Fixed | 26.1.2+dfsg-1 |
| forky | Affected | β |
| bullseye | Affected | β |
| bookworm | Affected | β |
References
- https://security-tracker.debian.org/tracker/CVE-2026-8643
- https://www.suse.com/security/cve/CVE-2026-8643.html
- https://github.com/pypa/pip/pull/14000
- https://mail.python.org/archives/list/security-announce@python.org/thread/YV63UET5D3OOJY7O4M5XCVYO2YM4NBYJ/
- http://www.openwall.com/lists/oss-security/2026/06/01/5
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.