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
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-6232

CVE-2024-6232: Python CPython ReDoS Vulnerability

CVE-2024-6232 is a Regular Expression Denial of Service (ReDoS) vulnerability in Python CPython's tarfile module that allows attackers to cause excessive backtracking. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: January 28, 2026

CVE-2024-6232 Overview

CVE-2024-6232 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting CPython's tarfile module. The vulnerability exists in regular expressions used during tarfile.TarFile header parsing, which allow excessive backtracking when processing specifically-crafted tar archives. An attacker can exploit this flaw by supplying a malicious tar file that causes the regex engine to enter an exponential time complexity state, effectively hanging or crashing applications that process untrusted tar archives.

Critical Impact

Applications processing untrusted tar archives are vulnerable to denial of service attacks through CPU exhaustion caused by malicious tar file headers triggering catastrophic regex backtracking.

Affected Products

  • Python CPython versions prior to patched releases
  • Python 3.13.0 alpha0 through alpha6
  • Python 3.13.0 beta1 through beta4 and rc1

Discovery Timeline

  • September 3, 2024 - CVE-2024-6232 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2024-6232

Vulnerability Analysis

This vulnerability is classified under CWE-1333 (Inefficient Regular Expression Complexity). The tarfile module in CPython uses regular expressions to parse tar archive headers. When these regular expressions encounter specially crafted input patterns, they can exhibit catastrophic backtracking behavior, where the regex engine explores an exponentially growing number of possible match paths before determining that no match exists.

The vulnerability can be exploited remotely without authentication by providing a malicious tar archive to any Python application that processes tar files from untrusted sources. This includes web applications accepting tar uploads, backup utilities, package managers, and data processing pipelines. The attack results in availability impact through CPU resource exhaustion, potentially causing complete service disruption.

Root Cause

The root cause lies in the inefficient regular expression patterns used within the tarfile.TarFile header parsing logic. These patterns contain constructs that allow for excessive backtracking when presented with adversarial input strings. Specifically, the regex patterns likely contain nested quantifiers or overlapping alternatives that create exponential time complexity under certain input conditions.

Attack Vector

The attack is network-exploitable with low complexity. An attacker creates a tar archive with specially crafted header fields designed to maximize regex backtracking. When a vulnerable Python application opens and parses this archive using tarfile.TarFile, the header parsing routine invokes the vulnerable regex patterns against the malicious headers.

The attack requires no privileges and no user interaction beyond the target application processing the malicious file. The impact is limited to availability—there is no confidentiality or integrity breach, but the denial of service can be severe, potentially consuming all available CPU resources on the affected system.

Detection Methods for CVE-2024-6232

Indicators of Compromise

  • Unusual CPU spikes correlated with tar file processing operations
  • Python processes consuming excessive CPU time during archive extraction
  • Application timeouts or hangs when processing tar files from external sources
  • Abnormally large or malformed tar files appearing in upload directories

Detection Strategies

  • Monitor Python application processes for sustained high CPU utilization during file processing operations
  • Implement application-level timeouts for tar file parsing operations to detect and terminate stuck processes
  • Review application logs for patterns indicating stalled or unresponsive archive processing
  • Deploy file integrity monitoring to identify anomalous tar files being submitted to processing pipelines

Monitoring Recommendations

  • Configure resource usage alerts for Python processes exceeding normal CPU thresholds
  • Implement watchdog timers around tarfile operations to detect and log excessive processing times
  • Monitor application response times for services that accept tar file uploads
  • Track and analyze tar file processing metrics to establish baselines and detect anomalies

How to Mitigate CVE-2024-6232

Immediate Actions Required

  • Upgrade Python to the latest patched version for your release branch
  • Implement input validation and file size limits for tar archives from untrusted sources
  • Add timeout mechanisms around tar file parsing operations to prevent resource exhaustion
  • Consider sandboxing or isolating tar file processing in resource-constrained environments

Patch Information

The Python Software Foundation has released patches across multiple CPython branches. The fix addresses the inefficient regular expression patterns in the tarfile module. Patches are available in the following commits:

  • CPython Commit 34ddb64
  • CPython Commit 4eaf489
  • CPython Commit 743acbe
  • CPython Commit 7d1f50c
  • CPython Commit b4225ca
  • CPython Commit d449caf
  • CPython Commit ed3a49e

For additional information, refer to the Python Security Announcement, GitHub Issue #121285, and GitHub Pull Request #121286.

Workarounds

  • Implement processing timeouts for all tarfile operations to limit the duration of potential ReDoS attacks
  • Validate tar file structure and header sizes before full parsing using lightweight checks
  • Process untrusted tar archives in isolated environments with strict CPU and memory limits
  • Consider using alternative tar parsing libraries that are not affected by this vulnerability for high-risk applications
bash
# Example: Resource-limited tar processing with timeout
timeout 30s python3 -c "
import tarfile
import resource

# Set CPU time limit (30 seconds)
resource.setrlimit(resource.RLIMIT_CPU, (30, 30))

# Process tar file with timeout protection
with tarfile.open('archive.tar', 'r') as tar:
    tar.extractall(path='/tmp/extract')
"

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPython

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability3.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1333
  • Technical References
  • Openwall OSS-Security Discussion

  • Debian LTS Advisory

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Issue #121285

  • GitHub Pull Request #121286

  • Python Security Announcement
  • Related CVEs
  • CVE-2025-13836: Python Python DOS Vulnerability

  • CVE-2026-0994: Google Protobuf Python DoS Vulnerability

  • CVE-2025-8194: CPython tarfile Module DoS Vulnerability

  • CVE-2024-8088: CPython zipfile.Path DOS 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