Skip to main content
EPSS 0.3%top 75%

CVE-2026-24049: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in pypa wheel

0
High
VulnerabilityCVE-2026-24049cvecve-2026-24049cwe-22cwe-732
Published: 01/22/2026 (01/22/2026, 04:02:08 UTC)
Source: CVE Database V5
Vendor/Project: pypa
Product: wheel

Description

wheel is a command line tool for manipulating Python wheel files, as defined in PEP 427. In versions 0.40.0 through 0.46.1, the unpack function is vulnerable to file permission modification through mishandling of file permissions after extraction. The logic blindly trusts the filename from the archive header for the chmod operation, even though the extraction process itself might have sanitized the path. Attackers can craft a malicious wheel file that, when unpacked, changes the permissions of critical system files (e.g., /etc/passwd, SSH keys, config files), allowing for Privilege Escalation or arbitrary code execution by modifying now-writable scripts. This issue has been fixed in version 0.46.2.

CVSS v3.1

Score 7.1high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Affected software

pypa

wheel

Affected versions
>=0.40.0 <0.46.2
wheel
pkg:pypi/wheel
Affected versions
>=0.40.0 <=0.46.1

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:55:41 UTC

Technical Analysis

The Python wheel command line tool versions 0.40.0 through 0.46.1 contain a path traversal vulnerability in the unpack function. This flaw arises because the logic blindly trusts filenames from the archive header when applying chmod operations, despite the extraction process potentially sanitizing paths. An attacker can craft a malicious wheel file that, when unpacked, changes permissions on critical system files such as /etc/passwd or SSH keys. This improper limitation of pathname to a restricted directory (CWE-22) can enable privilege escalation or arbitrary code execution by making sensitive scripts writable. The vulnerability has been addressed and fixed in version 0.46.2. Red Hat has issued advisories and released updated packages to remediate this issue.

Potential Impact

Successful exploitation allows an attacker to modify file permissions of critical system files, potentially leading to privilege escalation or arbitrary code execution. The attacker can make sensitive scripts writable, bypassing security mechanisms. The integrity and availability of the system can be compromised by overwriting or corrupting important files. Confidentiality may also be impacted if sensitive files are exposed or modified. The CVSS v3.1 score is 7.1 (high severity) with local attack vector, low attack complexity, no privileges required, user interaction required, and high impact on integrity and availability.

Mitigation Recommendations

A fix is available in Python wheel version 0.46.2. Users should upgrade to this version or later to remediate the vulnerability. Red Hat has released updated discovery-cli packages (version 2.4.3) containing the fix for affected Red Hat Enterprise Linux versions. There are no effective mitigations that meet Red Hat's criteria other than applying the official fix. Users should apply the vendor-provided patches or updates promptly.

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
GitHub_M
Date Reserved
2026-01-20T22:30:11.778Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-24049","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2823","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3959","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3958","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2090","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2866","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2710","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:1939","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2865","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:1902","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2900","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3461","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3462","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3960","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13545","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2675","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2694","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10184","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2695","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2106","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3782","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3713","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:5119","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:20089","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17599","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6555","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7250","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6565","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6562","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6192","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14020","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4942","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4185","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4215","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:1942","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2681","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2762","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2754","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:1504","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2925","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:4271","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2139","vendor":"Red Hat"}]

Threat ID: 6971a92c4623b1157c3a86c9

Added to database: 01/22/2026, 04:35:56 UTC

Last enriched: 08/15/2026, 14:55:41 UTC

Last updated: 09/10/2026, 22:12:33 UTC

Views: 1452

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