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-2023-25577

CVE-2023-25577: Werkzeug Multipart Parser DoS Vulnerability

CVE-2023-25577 is a denial of service vulnerability in Palletsprojects Werkzeug's multipart form parser that allows attackers to exhaust system resources. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-25577 Overview

CVE-2023-25577 is a Denial of Service (DoS) vulnerability in Werkzeug, a comprehensive WSGI web application library used extensively in Python web frameworks including Flask. Prior to version 2.2.3, Werkzeug's multipart form data parser will parse an unlimited number of parts, including file parts. Each part, regardless of size, requires CPU time to parse and may consume additional memory as Python data structures.

If a request can be made to an endpoint that accesses request.data, request.form, request.files, or request.get_data(parse_form_data=False), it can cause unexpectedly high resource usage. This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it.

Critical Impact

Attackers can exhaust CPU, memory, and file handles by sending crafted multipart requests with unlimited parts, potentially killing all available worker processes and rendering the application unavailable.

Affected Products

  • Palletsprojects Werkzeug versions prior to 2.2.3
  • Flask applications using vulnerable Werkzeug versions
  • Any Python WSGI application utilizing Werkzeug's multipart form parser

Discovery Timeline

  • 2023-02-14 - CVE-2023-25577 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-25577

Vulnerability Analysis

The vulnerability exists in Werkzeug's multipart form data parser, which is responsible for processing HTTP requests containing multipart/form-data content. This type of content is commonly used for file uploads and form submissions. The parser processes each part of the multipart data individually, allocating CPU cycles and memory for each part encountered.

The core issue is the absence of any limit on the number of parts that can be parsed from a single request. An attacker can craft a malicious request containing thousands or millions of small parts, each requiring individual processing. While each part may be trivially small in bytes, the cumulative effect of parsing numerous parts leads to:

  • CPU Exhaustion: Worker processes become blocked parsing malicious requests, unable to handle legitimate traffic
  • Memory Exhaustion: Python data structures for each part consume RAM, potentially triggering out-of-memory kills
  • File Handle Exhaustion: Unlimited file parts can deplete available file handles

Root Cause

The root cause is CWE-770: Allocation of Resources Without Limits or Throttling. The multipart parser did not enforce any maximum on the number of form or file parts that could be present in a single request. This design oversight allowed resource consumption to scale linearly with the number of parts in a crafted request, without any protective boundaries.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker sends specially crafted HTTP requests with multipart/form-data content type containing an excessive number of small parts to any endpoint that processes form data. The attack can target any endpoint that accesses:

  • request.data
  • request.form
  • request.files
  • request.get_data(parse_form_data=False)

When many concurrent malicious requests are sent continuously, this can exhaust or kill all available worker processes, resulting in complete service unavailability.

text
// Security patch in CHANGES.rst - Merge pull request from GHSA-xg9f-g7g7-2323
     the requested size in one ``read`` call. :issue:`2558`
 -   A cookie header that starts with ``=`` is treated as an empty key and discarded,
     rather than stripping the leading ``==``.
+-   Specify a maximum number of multipart parts, default 1000, after which a
+    ``RequestEntityTooLarge`` exception is raised on parsing. This mitigates a DoS
+    attack where a larger number of form/file parts would result in disproportionate
+    resource use.


 Version 2.2.2

Source: GitHub Commit

Detection Methods for CVE-2023-25577

Indicators of Compromise

  • Unusual spikes in CPU or memory utilization on web application servers
  • Increased frequency of HTTP requests with multipart/form-data content type containing abnormally large numbers of parts
  • Worker process crashes or out-of-memory kills in application logs
  • Elevated file handle usage beyond normal operational baselines

Detection Strategies

  • Monitor web server access logs for requests with unusually large Content-Length headers or extended processing times on form endpoints
  • Implement application-level monitoring for RequestEntityTooLarge exceptions after patching, which may indicate attempted exploitation
  • Deploy network-level inspection for HTTP requests with excessive multipart boundaries in the request body
  • Configure SIEM rules to alert on patterns of rapid, repeated POST requests to form-handling endpoints

Monitoring Recommendations

  • Track worker process health metrics including memory consumption and CPU utilization per request
  • Set up alerts for abnormal request parsing durations on endpoints handling file uploads or form submissions
  • Monitor application dependency versions to ensure Werkzeug 2.2.3 or later is deployed across all environments
  • Implement request rate limiting at the load balancer or reverse proxy level

How to Mitigate CVE-2023-25577

Immediate Actions Required

  • Upgrade Werkzeug to version 2.2.3 or later immediately across all environments
  • Review and audit all endpoints that process multipart form data for exposure
  • Implement rate limiting on form submission and file upload endpoints as a defense-in-depth measure
  • Configure max_content_length at the WSGI server or HTTP server level to limit request body sizes

Patch Information

The fix is available in Werkzeug version 2.2.3. The patch introduces a maximum number of multipart parts (default: 1000), after which a RequestEntityTooLarge exception is raised. This effectively limits resource consumption from malicious requests.

For detailed patch information, see the GitHub Security Advisory GHSA-xg9f-g7g7-2323 and the version 2.2.3 release notes.

Additional advisories have been published by Debian (DSA-5470) and NetApp (NTAP-20230818-0003).

Workarounds

  • Configure max_content_length at the HTTP server or reverse proxy level to reject excessively large requests before they reach the application
  • Implement request timeout configurations to terminate long-running parsing operations
  • Deploy a Web Application Firewall (WAF) rule to limit the number of multipart boundaries allowed in request bodies
  • Consider implementing custom middleware to count and limit form parts before passing to Werkzeug's parser
bash
# Configuration example - Upgrade Werkzeug using pip
pip install --upgrade werkzeug>=2.2.3

# Verify installed version
pip show werkzeug | grep Version

# For requirements.txt, specify minimum version
echo "werkzeug>=2.2.3" >> requirements.txt

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechWerkzeug

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.33%

  • 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 Version Release 2.2.3

  • NetApp Security Advisory NTAP-20230818-0003

  • Debian Security Advisory DSA-5470
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-xg9f-g7g7-2323
  • Related CVEs
  • CVE-2024-49767: Palletsprojects Quart DoS Vulnerability

  • CVE-2023-46136: Werkzeug Multipart Parsing DoS Vulnerability

  • CVE-2026-27199: Werkzeug Path Traversal Vulnerability

  • CVE-2026-21860: Werkzeug Path Traversal 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