The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-24049

CVE-2026-24049: Python Wheel Privilege Escalation Flaw

CVE-2026-24049 is a privilege escalation vulnerability in Python wheel that allows attackers to modify critical system file permissions. This article covers technical details, affected versions, impact, and mitigation.

Published: January 23, 2026

CVE-2026-24049 Overview

CVE-2026-24049 is a Path Traversal vulnerability affecting the Python wheel command line tool, which is used for manipulating Python wheel files as defined in PEP 427. In versions 0.46.1 and below, the unpack function is vulnerable to file permission modification through mishandling of file permissions after extraction.

The vulnerability stems from the logic blindly trusting 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.

Critical Impact

Maliciously crafted wheel files can alter permissions of critical system files outside the destination tree, enabling privilege escalation or arbitrary code execution.

Affected Products

  • Python wheel versions 0.46.1 and below
  • Systems using the wheel unpack command
  • Python development environments with vulnerable wheel installations

Discovery Timeline

  • 2026-01-22 - CVE CVE-2026-24049 published to NVD
  • 2026-01-22 - Last updated in NVD database

Technical Details for CVE-2026-24049

Vulnerability Analysis

This Path Traversal vulnerability (CWE-22) exists in the wheel package's unpack functionality. The core issue lies in the disconnect between how the extraction path is handled versus how the subsequent chmod operation is performed.

When a wheel file is unpacked, Python's ZipFile.extract() method sanitizes the path to prevent directory traversal attacks during extraction. However, the original vulnerable code used the raw zinfo.filename from the archive header for the subsequent chmod operation. This creates a dangerous race condition where an attacker can specify a traversal path like ../../../etc/passwd in the archive header - the file won't be extracted to that location due to sanitization, but the chmod operation will still target that path.

The attack requires local access and user interaction (the victim must unpack a malicious wheel file), but can result in high integrity and availability impacts through modification of critical system files or scripts.

Root Cause

The root cause is improper input validation where the code uses the unsanitized zinfo.filename directly from the archive header for file permission operations, rather than using the actual extracted file path returned by the extract() method. This allows attackers to specify arbitrary paths in the archive header that will be used for chmod operations, even though the extraction itself is properly sanitized.

Attack Vector

The attack requires local access where an attacker must convince a user to unpack a maliciously crafted wheel file. The attack flow is:

  1. Attacker creates a wheel file with specially crafted filenames containing path traversal sequences (e.g., ../../../etc/passwd)
  2. Victim downloads and runs wheel unpack on the malicious wheel file
  3. The extraction process sanitizes the path, extracting files only to the intended destination
  4. The vulnerable chmod operation uses the raw filename from the header, applying permissions to files outside the destination tree
  5. Critical system files become world-writable, enabling privilege escalation or code execution

The fix in version 0.46.2 addresses this by using the actual path returned by extract() for the chmod operation:

python
        destination = Path(dest) / namever
        print(f"Unpacking to: {destination}...", end="", flush=True)
        for zinfo in wf.filelist:
-            wf.extract(zinfo, destination)
+            target_path = Path(wf.extract(zinfo, destination))

            # Set permissions to the same values as they were set in the archive
            # We have to do this manually due to
            # https://github.com/python/cpython/issues/59999
            permissions = zinfo.external_attr >> 16 & 0o777
-            destination.joinpath(zinfo.filename).chmod(permissions)
+            target_path.chmod(permissions)

    print("OK")

Source: GitHub Commit

Detection Methods for CVE-2026-24049

Indicators of Compromise

  • Unexpected permission changes on critical system files such as /etc/passwd, /etc/shadow, or SSH keys
  • Wheel files containing path traversal sequences (../) in archive filenames
  • Modified timestamps on sensitive configuration files coinciding with wheel unpack operations
  • Audit logs showing chmod operations on files outside Python package directories

Detection Strategies

  • Monitor file system permission changes on critical system files using file integrity monitoring (FIM) tools
  • Implement audit rules to track chmod system calls targeting sensitive directories like /etc/
  • Scan Python wheel files before installation for suspicious filename patterns containing traversal sequences
  • Use SentinelOne's behavioral AI to detect anomalous file permission modifications following Python operations

Monitoring Recommendations

  • Enable audit logging for file permission changes on critical system files
  • Monitor Python package installation and unpacking activities in development and production environments
  • Implement alerting for any wheel unpack operations performed by non-administrative users
  • Track changes to executable scripts and configuration files that could be leveraged for privilege escalation

How to Mitigate CVE-2026-24049

Immediate Actions Required

  • Upgrade the wheel package to version 0.46.2 or later immediately using pip install --upgrade wheel
  • Audit systems for any recently unpacked wheel files from untrusted sources
  • Review file permissions on critical system files to ensure they haven't been modified
  • Restrict use of wheel unpack command to trusted wheel files only

Patch Information

The vulnerability has been fixed in wheel version 0.46.2. The patch modifies the unpack.py file to use the actual extracted path returned by the extract() method for the chmod operation, rather than trusting the raw filename from the archive header.

For detailed information, refer to the GitHub Security Advisory GHSA-8rrh-rw8j-w5fx and the wheel 0.46.2 release notes.

Workarounds

  • Avoid using wheel unpack on wheel files from untrusted or unknown sources
  • Use virtual environments with restricted permissions to limit the impact of potential exploitation
  • Implement file system access controls to prevent Python processes from modifying critical system files
  • Consider using container isolation for development environments that handle third-party wheel files
bash
# Upgrade wheel to patched version
pip install --upgrade wheel>=0.46.2

# Verify installed version
pip show wheel | grep Version

# Check file permissions on critical files
ls -la /etc/passwd /etc/shadow ~/.ssh/

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechWheel

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Reference

  • GitHub Release 0.46.2

  • GitHub Security Advisory GHSA-8rrh-rw8j-w5fx
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English