CVE-2026-8643: pip: Path traversal in console_scripts/gui_scripts entry point names allows installing scripts outside of target directory
pip would treat consolescripts and guiscripts 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.
Published Jun 1, 2026 · Updated Jul 10, 2026
Affected packages
pip
- Ecosystem
- PyPI
- Affected
- < 26.1.2
- Fixed in
- 26.1.2
- Check
pip show pip
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-8643
- https://github.com/pypa/pip/pull/14000
- https://mail.python.org/archives/list/[email protected]/thread/YV63UET5D3OOJY7O4M5XCVYO2YM4NBYJ
- 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://bugzilla.redhat.com/show_bug.cgi?id=2460927
- https://access.redhat.com/security/cve/CVE-2026-8643
- https://access.redhat.com/errata/RHSA-2026:36315
- https://access.redhat.com/errata/RHSA-2026:36193
- https://access.redhat.com/errata/RHSA-2026:34891
- https://access.redhat.com/errata/RHSA-2026:34780
- https://access.redhat.com/errata/RHSA-2026:34778
- https://access.redhat.com/errata/RHSA-2026:34777
- https://access.redhat.com/errata/RHSA-2026:34776
- https://access.redhat.com/errata/RHSA-2026:34775
- https://access.redhat.com/errata/RHSA-2026:34774
- https://access.redhat.com/errata/RHSA-2026:34773
- https://access.redhat.com/errata/RHSA-2026:34772
- https://access.redhat.com/errata/RHSA-2026:34765
- https://access.redhat.com/errata/RHSA-2026:34760
- https://access.redhat.com/errata/RHSA-2026:34758
- https://access.redhat.com/errata/RHSA-2026:34756
- https://access.redhat.com/errata/RHSA-2026:34752
- https://access.redhat.com/errata/RHSA-2026:34750
- https://access.redhat.com/errata/RHSA-2026:34749
- https://access.redhat.com/errata/RHSA-2026:34748
- https://access.redhat.com/errata/RHSA-2026:34741
- https://access.redhat.com/errata/RHSA-2026:34740
- https://access.redhat.com/errata/RHSA-2026:34739
- https://access.redhat.com/errata/RHSA-2026:34456
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-13346
pip would incorrectly handle doubly-encoded package URLs from indexes
medium5.6Jul 29, 2026CVE-2026-6357
pip Vulnerable to Inclusion of Functionality from Untrusted Control Sphere
medium5.3Apr 27, 2026CVE-2026-3219
pip has an interpretation conflict due to handling both concatenated tar and ZIP files as ZIP files
medium4.6Apr 20, 2026CVE-2026-1703
pip Path Traversal vulnerability
low2.0Feb 2, 2026CVE-2025-8869
pip's fallback tar extraction doesn't check symbolic links point to extraction directory
medium5.9Sep 24, 2025
