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
    • AI 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-2026-42561

CVE-2026-42561: Python-Multipart DoS Vulnerability

CVE-2026-42561 is a denial of service flaw in Python-Multipart that allows attackers to cause excessive CPU work through malicious multipart headers. This post covers technical details, affected versions, and mitigation.

Published: May 14, 2026

CVE-2026-42561 Overview

CVE-2026-42561 is a denial of service vulnerability in python-multipart, a streaming multipart parser used by Python web frameworks including Starlette and FastAPI. The flaw exists in the MultipartParser component prior to version 0.0.27. The parser places no limit on either the number of part headers or the size of an individual part header when processing multipart/form-data requests. Remote attackers can submit crafted requests containing many repeated headers without terminating the header block, or a single oversized header value. The server consumes excessive CPU cycles parsing these inputs before the request is rejected or completed. The issue is tracked under [CWE-770: Allocation of Resources Without Limits or Throttling].

Critical Impact

Unauthenticated remote attackers can exhaust CPU resources on any service that ingests multipart form data, degrading availability for legitimate users.

Affected Products

  • python-multipart versions prior to 0.0.27
  • Python web applications and frameworks that depend on python-multipart for form parsing (including Starlette and FastAPI deployments)
  • Any HTTP endpoint accepting multipart/form-data content through the affected parser

Discovery Timeline

  • 2026-05-13 - CVE-2026-42561 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42561

Vulnerability Analysis

The MultipartParser class streams multipart/form-data payloads and parses part headers as bytes arrive on the wire. The parser accumulates header name and value bytes into internal buffers and continues processing until it encounters the header terminator sequence. Because no upper bound is enforced on the header count or the per-header byte length, an attacker controls both dimensions of the parsing work.

When a request contains thousands of repeated part headers without a terminating empty line, the parser performs work proportional to the input size before any application-level handler runs. A similar effect occurs when a single header value spans many kilobytes or megabytes. The CPU time spent inside the parsing loop blocks the worker thread or async task handling the request.

In typical deployments behind a WSGI or ASGI server, each malicious request occupies a worker until parsing completes or fails. A small number of concurrent attackers can saturate the available worker pool, producing a denial of service against the entire application.

Root Cause

The root cause is missing input validation on parser state transitions. MultipartParser lacks both a maximum part header count and a maximum header line length. Streaming parsers must enforce hard ceilings on accumulator buffers to bound worst-case work per request. Version 0.0.27 introduces these limits and rejects oversized header blocks early.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker sends an HTTP POST or PUT request with Content-Type: multipart/form-data to any endpoint that invokes the vulnerable parser. The malicious payload contains either an unbounded sequence of repeated part headers or a single header field with an oversized value. Refer to the GitHub Security Advisory GHSA-pp6c-gr5w-3c5g for the upstream technical description.

Detection Methods for CVE-2026-42561

Indicators of Compromise

  • HTTP requests with Content-Type: multipart/form-data and abnormally large Content-Length values that contain few or no file parts
  • Request bodies where individual part header lines exceed several kilobytes
  • Repeated identical part header names within a single multipart boundary section without a terminating empty line
  • Sustained elevation in application worker CPU utilization correlated with multipart upload endpoints

Detection Strategies

  • Inspect web server and reverse proxy access logs for multipart/form-data requests with unusual size-to-completion-time ratios
  • Deploy WAF rules that cap the number of headers per multipart part and the byte length of any single header line
  • Monitor application performance metrics for spikes in p95 and p99 request latency on upload endpoints

Monitoring Recommendations

  • Track CPU utilization per worker process and alert when sustained utilization exceeds normal baselines on endpoints that accept file uploads
  • Log and review HTTP 400 and 413 response rates from multipart endpoints for anomalies
  • Capture the dependency version of python-multipart in software bill of materials (SBOM) inventories and alert on versions below 0.0.27

How to Mitigate CVE-2026-42561

Immediate Actions Required

  • Upgrade python-multipart to version 0.0.27 or later across all Python services
  • Audit transitive dependencies in Starlette, FastAPI, and other frameworks to confirm the patched version is resolved
  • Apply request size and rate limits at the reverse proxy or WAF layer in front of affected applications

Patch Information

The maintainers fixed the issue in python-multipart0.0.27 by enforcing limits on the number of part headers and on individual header line size. See the GitHub Security Advisory GHSA-pp6c-gr5w-3c5g for upstream details.

Workarounds

  • Configure an upstream reverse proxy such as nginx or Envoy to enforce a maximum request body size on multipart endpoints
  • Restrict header size limits at the load balancer to reject requests with oversized header lines before they reach application workers
  • Apply per-IP request rate limiting to upload routes to reduce the impact of concurrent abusive clients
bash
# Configuration example: upgrade python-multipart to the patched release
pip install --upgrade 'python-multipart>=0.0.27'

# Verify the installed version
python -c "import multipart; print(multipart.__version__)"

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPython Multipart

  • SeverityHIGH

  • CVSS Score7.5

  • 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-770
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40347: Python-Multipart DOS Vulnerability

  • CVE-2024-53981: python-multipart DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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