CVE-2026-8643
pip can extract console_scripts and gui_scripts outside installation directory
Also known as GHSA-wf93-45jw-7689, PYSEC-2026-196
Mitigation
- Upgrade pip to 26.1.2 or later.
Who should check
- Projects that depend on PyPI package pip (< 26.1.2)
- Anyone running Python Packaging Authority pip >= 24.0, < 26.1.2
Vulnerability facts
- Affected
- pip < 26.1.2
- Fixed in
- 26.1.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.1 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: Active
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.47% chance of exploitation in 30 days (percentile 32, 2026-11-26)
- CWE
- CWE-22
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI pip | < 26.1.2 | 26.1.2 | osv |
| Python Packaging Authority pip | >= 24.0, < 26.1.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-8643. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-8643.md Affected: pip < 26.1.2 Fixed in: 26.1.2 Steps: 1. Search this machine and project for pip (PyPI), Python Packaging Authority pip: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://mail.python.org/archives/list/security-announce@python.org/thread/YV63UET5D3OOJY7O4M5XCVYO2YM4NBYJ/
- http://www.openwall.com/lists/oss-security/2026/06/01/5
- https://access.redhat.com/errata/RHSA-2026:42078
- https://access.redhat.com/errata/RHSA-2026:42079
- https://access.redhat.com/errata/RHSA-2026:36193
- https://access.redhat.com/errata/RHSA-2026:36315
- https://access.redhat.com/errata/RHSA-2026:42144
- https://access.redhat.com/errata/RHSA-2026:50479
- https://access.redhat.com/errata/RHSA-2026:34374
- https://access.redhat.com/errata/RHSA-2026:42132
- https://access.redhat.com/errata/RHSA-2026:54760
- https://access.redhat.com/errata/RHSA-2026:33313
- https://access.redhat.com/errata/RHSA-2026:34891
- https://access.redhat.com/errata/RHSA-2026:56347
- https://access.redhat.com/errata/RHSA-2026:42644
- https://access.redhat.com/errata/RHSA-2026:34772
- https://access.redhat.com/errata/RHSA-2026:34778
- https://access.redhat.com/errata/RHSA-2026:34780
- https://access.redhat.com/errata/RHSA-2026:34773
- https://access.redhat.com/errata/RHSA-2026:34774
- https://access.redhat.com/errata/RHSA-2026:34739
- https://access.redhat.com/errata/RHSA-2026:34752
- https://access.redhat.com/errata/RHSA-2026:34765
- https://access.redhat.com/errata/RHSA-2026:34758
- https://access.redhat.com/errata/RHSA-2026:34756
- https://access.redhat.com/errata/RHSA-2026:34760
- https://access.redhat.com/errata/RHSA-2026:34776
- https://access.redhat.com/errata/RHSA-2026:34748
- https://access.redhat.com/errata/RHSA-2026:34775
- https://access.redhat.com/errata/RHSA-2026:34740
- https://access.redhat.com/errata/RHSA-2026:34749
- https://access.redhat.com/errata/RHSA-2026:34750
- https://access.redhat.com/errata/RHSA-2026:34741
- https://access.redhat.com/errata/RHSA-2026:34777
- https://access.redhat.com/errata/RHSA-2026:37275
- https://access.redhat.com/errata/RHSA-2026:60520
- https://access.redhat.com/errata/RHSA-2026:34456
- https://access.redhat.com/errata/RHSA-2026:37283
- https://nvd.nist.gov/vuln/detail/CVE-2026-8643
- https://github.com/advisories/GHSA-wf93-45jw-7689
Other
- https://access.redhat.com/security/cve/CVE-2026-8643
- https://bugzilla.redhat.com/show_bug.cgi?id=2460927
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-8643.json
- https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2026-196.yaml
- https://github.com/pypa/pip
- https://mail.python.org/archives/list/security-announce@python.org/thread/YV63UET5D3OOJY7O4M5XCVYO2YM4NBYJ
FAQ
Is CVE-2026-8643 being exploited?
There is no confirmed exploitation: CVE-2026-8643 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-8643?
Medium: CVSS 4.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-8643?
pip < 26.1.2.
Is there a fix for CVE-2026-8643?
Yes. Fixed in 26.1.2. Upgrade pip to 26.1.2 or later.
How do I check if I'm affected by CVE-2026-8643?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.