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-2024-24762

CVE-2024-24762: Python-multipart ReDoS Vulnerability

CVE-2024-24762 is a regular expression denial of service flaw in python-multipart that allows attackers to exhaust CPU resources via malicious Content-Type headers. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-24762 Overview

CVE-2024-24762 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting python-multipart, a streaming multipart parser library widely used in Python web frameworks. When processing form data, the library uses a vulnerable regular expression to parse the HTTP Content-Type header and its options. An attacker can exploit this by sending a specially crafted Content-Type header that causes the regex engine to consume excessive CPU resources, resulting in indefinite stalls lasting minutes or more while blocking the main event loop.

Critical Impact

This vulnerability enables remote attackers to completely stall web applications by sending malicious HTTP requests, rendering the server unable to process any additional requests and effectively causing a denial of service condition.

Affected Products

  • fastapiexpert python-multipart (versions prior to 0.0.7)
  • encode starlette (versions using vulnerable python-multipart)
  • tiangolo fastapi (versions prior to 0.109.1)

Discovery Timeline

  • 2024-02-05 - CVE-2024-24762 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2024-24762

Vulnerability Analysis

This vulnerability represents a classic Regular Expression Denial of Service (ReDoS) attack surface in web application middleware. The python-multipart library, which serves as a critical dependency for popular Python web frameworks like FastAPI and Starlette, contains a flawed regular expression pattern used to parse Content-Type HTTP headers.

When the regex engine encounters a maliciously crafted input string, it enters a state of catastrophic backtracking. This occurs because the regex pattern contains nested quantifiers or overlapping alternation groups that cause the matching algorithm to explore an exponentially growing number of possible paths. The impact is severe: a single malicious request can monopolize CPU resources and block the application's event loop, preventing it from handling any legitimate traffic.

The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) and CWE-1333 (Inefficient Regular Expression Complexity), both of which highlight the fundamental issue of algorithmic complexity attacks against string parsing routines.

Root Cause

The root cause lies in the regular expression pattern located in the multipart parsing module (specifically at lines 72-74 in multipart.py). The regex designed to extract options from the Content-Type header contains patterns that exhibit polynomial or exponential time complexity when matched against adversarial inputs. This is a common pitfall when regex patterns include:

  • Nested quantifiers (e.g., (a+)+)
  • Overlapping alternations with variable-length matches
  • Unbounded repetitions combined with partial matches

When an attacker provides input specifically designed to maximize backtracking, the regex engine cannot complete matching in reasonable time.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying an endpoint that processes form data (multipart/form-data)
  2. Crafting a malicious Content-Type header with a specially designed options string
  3. Sending HTTP requests with the malicious header to the target application
  4. The regex parser stalls while processing the header, blocking the event loop
  5. Continued requests amplify the denial of service effect

The malicious Content-Type header exploits the regex's vulnerability by including repeated patterns or characters that force extensive backtracking. Because the parsing occurs synchronously in the main event loop, even a single malicious request can render the entire application unresponsive for minutes.

Detection Methods for CVE-2024-24762

Indicators of Compromise

  • Unusual CPU spikes correlated with incoming HTTP requests containing atypical Content-Type headers
  • Application logs showing request timeouts or event loop blocking on form data endpoints
  • Abnormally long response times for endpoints that accept multipart form data
  • Requests with extremely long or malformed Content-Type header option values

Detection Strategies

  • Monitor for HTTP requests containing Content-Type headers with unusually long option strings or repetitive character patterns
  • Implement request timeout monitoring to detect requests that exceed normal processing thresholds
  • Deploy web application firewall (WAF) rules to inspect and limit Content-Type header complexity
  • Use application performance monitoring (APM) to identify regex processing hotspots

Monitoring Recommendations

  • Enable detailed logging for all multipart form data processing endpoints
  • Set up alerting thresholds for CPU utilization anomalies on web server processes
  • Monitor request latency percentiles (p95, p99) for sudden degradation patterns
  • Track dependency versions in CI/CD pipelines to ensure patched versions are deployed

How to Mitigate CVE-2024-24762

Immediate Actions Required

  • Upgrade python-multipart to version 0.0.7 or later immediately
  • Update FastAPI to version 0.109.1 or later which includes the patched dependency
  • Audit all Python applications using Starlette or FastAPI to verify dependency versions
  • Implement request timeouts at the web server or reverse proxy level as a defense-in-depth measure

Patch Information

The vulnerability has been patched in python-multipart version 0.0.7. The fix addresses the regex complexity issue by implementing a more efficient parsing approach that prevents catastrophic backtracking.

Relevant patches and commits:

  • python-multipart security patch
  • Starlette security patch
  • FastAPI security patch

For complete details, refer to the python-multipart security advisory, Starlette security advisory, and FastAPI security advisory.

Workarounds

  • Configure reverse proxy or load balancer request timeouts to limit maximum request processing time
  • Implement input validation to reject Content-Type headers exceeding reasonable length thresholds
  • Deploy rate limiting on endpoints that accept multipart form data to reduce attack surface
  • Consider temporarily disabling form data processing on non-essential endpoints until patching is complete
bash
# Upgrade python-multipart to patched version
pip install --upgrade python-multipart>=0.0.7

# Upgrade FastAPI to patched version
pip install --upgrade fastapi>=0.109.1

# Verify installed versions
pip show python-multipart fastapi | grep -E "^(Name|Version)"

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechFastapiexpert

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability2.49%

  • 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-400

  • CWE-1333
  • Technical References
  • GitHub Code Reference

  • GitHub Security Advisory

  • GitHub Release Notes

  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory

  • GitHub Commit Update

  • GitHub Commit Update
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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