CVE-2024-49767: CWE-400: Uncontrolled Resource Consumption in pallets werkzeug
Werkzeug is a Web Server Gateway Interface web application library. Applications using `werkzeug.formparser.MultiPartParser` corresponding to a version of Werkzeug prior to 3.0.6 to parse `multipart/form-data` requests (e.g.all flask applications) are vulnerable to a relatively simple but effective resource exhaustion (denial of service) attack. A specifically crafted form submission request can cause the parser to allocate and block 3 to 8 times the upload size in main memory. There is no upper limit; a single upload at 1 Gbit/s can exhaust 32 GB of RAM in less than 60 seconds. Werkzeug version 3.0.6 fixes this issue.
AI Analysis
Technical Summary
Werkzeug is a WSGI web application library used by many Python web frameworks such as Flask. Versions prior to 3.0.6 that use the MultiPartParser to handle multipart/form-data requests are vulnerable to a resource exhaustion attack. Specifically, a crafted multipart form submission can cause the parser to allocate significantly more memory than the actual upload size, with no upper limit on memory usage. This can result in denial of service by consuming excessive RAM, impacting server availability. The vulnerability is tracked as CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling). The fix is included in Werkzeug 3.0.6.
Potential Impact
The vulnerability allows remote attackers to cause denial of service by exhausting server memory resources through crafted multipart/form-data requests. This can degrade or crash affected web applications relying on vulnerable Werkzeug versions, impacting availability. There is no indication of privilege escalation, data disclosure, or code execution. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Upgrade to Werkzeug version 3.0.6 or later, where this resource exhaustion vulnerability is fixed. Since no official patch links or advisories are provided in the data, verify the upgrade path through the official Pallets Werkzeug project. Until upgraded, consider implementing request size limits or rate limiting on multipart/form-data uploads to reduce risk. Patch status is not explicitly confirmed in the vendor advisory content provided; check the official vendor advisory for the latest remediation guidance.
CVE-2024-49767: CWE-400: Uncontrolled Resource Consumption in pallets werkzeug
Description
Werkzeug is a Web Server Gateway Interface web application library. Applications using `werkzeug.formparser.MultiPartParser` corresponding to a version of Werkzeug prior to 3.0.6 to parse `multipart/form-data` requests (e.g.all flask applications) are vulnerable to a relatively simple but effective resource exhaustion (denial of service) attack. A specifically crafted form submission request can cause the parser to allocate and block 3 to 8 times the upload size in main memory. There is no upper limit; a single upload at 1 Gbit/s can exhaust 32 GB of RAM in less than 60 seconds. Werkzeug version 3.0.6 fixes this issue.
CVSS v4.0
Score 6.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Werkzeug is a WSGI web application library used by many Python web frameworks such as Flask. Versions prior to 3.0.6 that use the MultiPartParser to handle multipart/form-data requests are vulnerable to a resource exhaustion attack. Specifically, a crafted multipart form submission can cause the parser to allocate significantly more memory than the actual upload size, with no upper limit on memory usage. This can result in denial of service by consuming excessive RAM, impacting server availability. The vulnerability is tracked as CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling). The fix is included in Werkzeug 3.0.6.
Potential Impact
The vulnerability allows remote attackers to cause denial of service by exhausting server memory resources through crafted multipart/form-data requests. This can degrade or crash affected web applications relying on vulnerable Werkzeug versions, impacting availability. There is no indication of privilege escalation, data disclosure, or code execution. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Upgrade to Werkzeug version 3.0.6 or later, where this resource exhaustion vulnerability is fixed. Since no official patch links or advisories are provided in the data, verify the upgrade path through the official Pallets Werkzeug project. Until upgraded, consider implementing request size limits or rate limiting on multipart/form-data uploads to reduce risk. Patch status is not explicitly confirmed in the vendor advisory content provided; check the official vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2024-10-18T13:43:23.457Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0e3a4dba1db47362b6de42
Added to database: 05/20/2026, 22:48:45 UTC
Last enriched: 05/20/2026, 23:03:30 UTC
Last updated: 07/04/2026, 20:51:17 UTC
Views: 74
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.