CVE Database›Document archive›CVE-2026-8643

CVE-2026-8643

python-pip: Path traversal via malicious entry point name in pip wheel installation allows arbitrary file overwrite

Loading…

Severity

Important

Red Hat Product Security

8

CVSS 3.1

Review impact separately from score.

Published · May 28, 2026

Updated · November 5, 2026

Description

A flaw was found in pip, the package installer for Python. A remote attacker can exploit this vulnerability by tricking a victim into installing a malicious Python wheel. This wheel contains specially crafted entry-point names that use directory traversal or absolute paths. This allows pip to write generated script wrappers outside the intended installation directory, leading to arbitrary file overwrite. This can severely impact system integrity and availability, and in certain scenarios, may lead to arbitrary code execution.

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

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.

CVSS / CWE

CVSS 3.1 · 8
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

CWE-22 · Improper Limitation of a Pathname to a Restricted Directory