Loading advisory.
Loading advisory.
Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning
Werkzeug multipart data parser needs to find a boundary that may be between consecutive chunks. That's why parsing is based on looking for newline characters.
Published 2023-10-24 23:48 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| werkzeug | PyPI | >= 3.0.0, < 3.0.1 >= 2.0.0rc1, < 2.3.8 git commits in https://github.com/pallets/werkzeug: < f3c803b3ade485a45f12b6d6617595350c0f03e2 git commits in https://github.com/pallets/werkzeug: < f2300208d5e2a5076cbbb4c2aad71096fd040ef9 < 2.3.8 versions 3.0.0, 2.0.0, 2.0.0rc1, 2.0.0rc2, 2.0.0rc3, 2.0.0rc4, 2.0.0rc5, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.0a1, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1 and 70 more | 3.0.1, 2.3.8, f3c803b3ade485a45f12b6d6617595350c0f03e2, f2300208d5e2a5076cbbb4c2aad71096fd040ef9 | pip install --upgrade 'werkzeug>=3.0.1'pip install --upgrade 'werkzeug>=2.3.8'pip install --upgrade 'werkzeug>=f3c803b3ade485a45f12b6d6617595350c0f03e2'pip install --upgrade 'werkzeug>=f2300208d5e2a5076cbbb4c2aad71096fd040ef9' |
Werkzeug multipart data parser needs to find a boundary that may be between consecutive chunks. That's why parsing is based on looking for newline characters. Unfortunately, code looking for partial boundary in the buffer is written inefficiently, so if we upload a file that starts with CR or LF and then is followed by megabytes of data without these characters: all of these bytes are appended chunk by chunk into internal bytearray and lookup for boundary is performed on growing buffer.
This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests. The amount of RAM required can trigger an out of memory kill of the process. If many concurrent requests are sent continuously, this can exhaust or kill all available workers.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.013 on 2026-11-24 to 0.014 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.013 | first score | v2026.06.15 |
| 2026-11-26 | 0.014 | 0.013 | v2026.06.15 |