cve.bz

CVE-2026-8643 pypa pip: Path traversal

4.1 mediumEPSS 0.3%Fix available

Medium (4.1) in pypa pip. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in pip 26.1.2.

On this page
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.

Severity

CVSS 4.0

4.1 medium
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-8643 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-8643?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-8643?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-8643 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Packaging Authority pipfrom 24.0 before 26.1.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wf93-45jw-7689PyPIpip<26.1.226.1.2
PYSEC-2026-196PyPIpip<26.1.226.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13python-pipno fix listedDEBIAN-CVE-2026-8643
Debian14python-pip26.1.2+dfsg-1DEBIAN-CVE-2026-8643
Ubuntu25.10, 26.10, Pro:14.04:LTS and 6 morepython-pipno fix listedUBUNTU-CVE-2026-8643
Red Hatenterprise_linux:9::appstreampython3.14-pip, python3.14-pip-wheel0:25.2-3.el9_8.5RHSA-2026:36315
Red Hatenterprise_linux:10.2python3.14-pip, python3.14-pip-wheel0:25.2-3.el10_2.5RHSA-2026:36193
Red Hathummingbird:1python-pip, python3-pip, python-pip-wheel0:26.1.1-3.1.hum1RHSA-2026:34891
Red Hathummingbird:1python-pip, python3-pip, python-pip-wheel0:26.1.2-1.hum1RHSA-2026:36359
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
124 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0python-pip25.0.1-160000.5.1openSUSE-SU-2026:20993-1
openSUSETumbleweedpython-pip26.1.2-1.1openSUSE-SU-2026:10940-1
AlmaLinux9python3.14-pip, python3.14-pip-wheel25.2-3.el9_8.5ALSA-2026:36315
AlmaLinux10python3.14-pip, python3.14-pip-wheel25.2-3.el10_2.5ALSA-2026:36193
Rocky Linux9python3.14-pip0:25.2-3.el9_8.5RLSA-2026:36315
Rocky Linux10python3.14-pip0:25.2-3.el10_2.5RLSA-2026:36193
Azure Linux3python-pip24.2-9AZL-89325
Azure Linux3python-virtualenv20.36.1-5AZL-89463
Alpaquita23py3-pip22.3.1-r5BELL-CVE-2026-8643
Alpaquita25py3-pip25.1.1-r2BELL-CVE-2026-8643
Alpaquitastreampy3-pip26.1.1-r1BELL-CVE-2026-8643
BellSoft Hardened Containers23py3-pip22.3.1-r5BELL-CVE-2026-8643
BellSoft Hardened Containers25py3-pip25.1.1-r2BELL-CVE-2026-8643
BellSoft Hardened Containersstreampy3-pip26.1.1-r1BELL-CVE-2026-8643

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in pip's wheel installation process allows for arbitrary file overwrite due to path traversal. An attacker could exploit this by convincing a user to install a specially crafted malicious Python wheel. While file overwrites are limited to the installing user's permissions, using `pip install` with elevated privileges in Red Hat environments significantly increases the potential impact, potentially leading to system integrity compromise or arbitrary code execution.

Red Hat's mitigation

To mitigate this issue, users should avoid installing Python wheels from untrusted sources. It is strongly advised against using `pip install` with elevated privileges, such as `sudo`, when installing wheels. Additionally, administrators should inspect `entry_points.txt` within wheels for path separators or absolute paths before installation.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8automation-controller-0:4.6.30-2.el8apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.5 for RHEL 9automation-controller-0:4.6.30-2.el9apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-controller-0:4.7.14-3.el9apFixed 2026-07-20RHSA-2026:42079
Red Hat Enterprise Linux 10python3.14-pip-0:25.2-3.el10_2.5Fixed 2026-07-07RHSA-2026:36193
Red Hat Enterprise Linux 9python3.14-pip-0:25.2-3.el9_8.5Fixed 2026-07-07RHSA-2026:36315
Red Hat Ansible Automation Platform 2.5ansible-automation-platform-25/controller-rhel8:1784049109Fixed 2026-07-20RHSA-2026:42144
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/de-minimal-rhel9:1782711769Fixed 2026-07-01RHSA-2026:34374
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/de-supported-rhel9:1782713671Fixed 2026-07-01RHSA-2026:34374
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/gateway-rhel9:1782761510Fixed 2026-07-01RHSA-2026:34374
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-tech-preview/metrics-service-rhel9:1783969139Fixed 2026-07-20RHSA-2026:42132
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cpu-rhel9Affected
Lightspeed Corelightspeed-core/rag-tool-cuda-12.9-rhel9Affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel9-operatorAffected
Migration Toolkit for Virtualizationmtv-candidate/mtv-rhel9-operatorWill not fix
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Not affected
OpenShift Service Mesh 3openshift-service-mesh/kiali-rhel9-operatorNot affected
Pen Drive Powered by Red Hat Lightspeedpen-drive/pen-drive-scanner-rhel9Not affected
Red Hat AI Inference Serverrhaii/model-opt-cuda-rhel9Affected
174 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-8643.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON