Skip to main content
EPSS 0.3%top 75%

CVE-2026-8643: Vulnerability in Python Packaging Authority pip

0
Medium
VulnerabilityCVE-2026-8643cvecve-2026-8643
Published: 06/01/2026 (06/01/2026, 15:01:32 UTC)
Source: CVE Database V5
Vendor/Project: Python Packaging Authority
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Python Packaging Authority

pip

Affected versions
>=24.0 <26.1.2
pip
pkg:pypi/pip
Affected versions
>=24.0 <26.1.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/15/2026, 14:24:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses