CVE-2026-8643: Vulnerability in Python Packaging Authority pip
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.
AI Analysis
Technical Summary
The vulnerability in pip arises because it treats console_scripts and gui_scripts entry points as paths without sanitizing the resolved absolute path, enabling directory traversal or use of absolute paths. This allows an attacker to cause pip to write script wrappers outside the intended installation directory, resulting in arbitrary file overwrite. Exploitation requires convincing a user to install a malicious Python wheel with crafted entry-point names. The impact ranges from file overwrite to potential arbitrary code execution, especially when pip is run with elevated privileges. The issue is tracked as CWE-22 and has a CVSS score of 4.1 (medium severity).
Potential Impact
An attacker can overwrite arbitrary files on the system with the permissions of the user running pip. When pip is used with elevated privileges (e.g., sudo), this can lead to system integrity compromise and potentially arbitrary code execution. The vulnerability affects system availability, confidentiality, and integrity by allowing unauthorized file modification and possible execution of malicious code.
Mitigation Recommendations
Users should avoid installing Python wheels from untrusted sources and should not run 'pip install' with elevated privileges. Administrators are advised to inspect the 'entry_points.txt' file within wheels for path separators or absolute paths before installation. A fix is available as indicated by the Red Hat advisory and related patches; users should apply the official updates provided by their vendor. Patch status is confirmed by Red Hat's advisory and the referenced GitHub commit.
CVE-2026-8643: Vulnerability in Python Packaging Authority pip
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.
CVSS v4.0
Score 4.1medium
Affected software
Python Packaging Authority
pip
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in pip arises because it treats console_scripts and gui_scripts entry points as paths without sanitizing the resolved absolute path, enabling directory traversal or use of absolute paths. This allows an attacker to cause pip to write script wrappers outside the intended installation directory, resulting in arbitrary file overwrite. Exploitation requires convincing a user to install a malicious Python wheel with crafted entry-point names. The impact ranges from file overwrite to potential arbitrary code execution, especially when pip is run with elevated privileges. The issue is tracked as CWE-22 and has a CVSS score of 4.1 (medium severity).
Potential Impact
An attacker can overwrite arbitrary files on the system with the permissions of the user running pip. When pip is used with elevated privileges (e.g., sudo), this can lead to system integrity compromise and potentially arbitrary code execution. The vulnerability affects system availability, confidentiality, and integrity by allowing unauthorized file modification and possible execution of malicious code.
Mitigation Recommendations
Users should avoid installing Python wheels from untrusted sources and should not run 'pip install' with elevated privileges. Administrators are advised to inspect the 'entry_points.txt' file within wheels for path separators or absolute paths before installation. A fix is available as indicated by the Red Hat advisory and related patches; users should apply the official updates provided by their vendor. Patch status is confirmed by Red Hat's advisory and the referenced GitHub commit.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-05-14T20:21:04.562Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-8643","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33313","vendor":"Red Hat"}]
Threat ID: 6a1dbba7e29bf47b501c5819
Added to database: 06/01/2026, 17:04:39 UTC
Last enriched: 08/15/2026, 14:24:31 UTC
Last updated: 09/14/2026, 12:32:37 UTC
Views: 144
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.