CVE-2023-46136
Werkzeug vulnerable to high resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning
Also known as GHSA-hrfv-mqp8-q5rw, PYSEC-2023-221
Mitigation
- Upgrade werkzeug to one of 3.0.1, 2.3.8 (or later in the same release line).
Who should check
- Projects that depend on PyPI package werkzeug (>= 3.0.0, < 3.0.1)
- Anyone running pallets werkzeug >= 3.0.0, < 3.0.1; >= 2.0.0rc1, < 2.3.8
Vulnerability facts
- Affected
- werkzeug >= 3.0.0, < 3.0.1
- Fixed in
- 3.0.1, 2.3.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.0 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Adjacent network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.37% chance of exploitation in 30 days (percentile 72, 2026-11-26)
- CWE
- CWE-407, CWE-400
- Modified
Description
Werkzeug is a comprehensive WSGI web application library. In versions on the 3.x branch prior to 3.0.1 and on the 2.x branch prior to 2.3.8, if an upload of 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. This vulnerability has been patched in version 3.0.1 and 2.3.8.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-46136. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-46136.md Affected: werkzeug >= 3.0.0, < 3.0.1 Fixed in: 3.0.1, 2.3.8 Steps: 1. Search this machine and project for werkzeug (PyPI), pallets werkzeug: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/pallets/werkzeug/commit/f3c803b3ade485a45f12b6d6617595350c0f03e2
- https://github.com/pallets/werkzeug/commit/b1916c0c083e0be1c9d887ee2f3d696922bfc5c1
- https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5
- https://github.com/pallets/werkzeug/commit/f2300208d5e2a5076cbbb4c2aad71096fd040ef9
FAQ
Is CVE-2023-46136 being exploited?
There is no confirmed exploitation: CVE-2023-46136 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.37% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-46136?
High: CVSS 8.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-46136?
werkzeug >= 3.0.0, < 3.0.1.
Is there a fix for CVE-2023-46136?
Yes. Fixed in 3.0.1, 2.3.8. Upgrade werkzeug to one of 3.0.1, 2.3.8 (or later in the same release line).
How do I check if I'm affected by CVE-2023-46136?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.