CVE-2023-46136
HIGH 7.5CVSS 3.1Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning
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.
- Published
- 25 Oct 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400CWE-787
- Also known as
- GHSA-hrfv-mqp8-q5rwPYSEC-2023-221
- Sources
- NVDJSONOSV GHSA-hrfv-mqp8-q5rwJSONOSV PYSEC-2023-221JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.0 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | palletsprojects | werkzeugcpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:* |
< 2.3.8 | 2.3.8 |
| NVD | palletsprojects | werkzeugcpe:2.3:a:palletsprojects:werkzeug:3.0.0:*:*:*:*:*:*:* |
= 3.0.0 | |
| OSV | PyPI | werkzeug | >= 3.0.0, < 3.0.1 | 3.0.1 |
| OSV | PyPI | werkzeug | >= 2.0.0rc1, < 2.3.8 | 2.3.8 |
| OSV | PyPI | werkzeug | < 2.3.8; >= 3.0.0, < 3.0.1 | 2.3.8, 3.0.1 |
References
- https://github.com/pallets/werkzeug/commit/f3c803b3ade485a45f12b6d6617595350c0f03e2 · Patch, WEB, FIX
- https://github.com/pallets/werkzeug/security/advisories/GHSA-hrfv-mqp8-q5rw · Vendor Advisory, WEB, ADVISORY
- https://security.netapp.com/advisory/ntap-20231124-0008/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-46136 · ADVISORY
- https://github.com/pallets/werkzeug/commit/b1916c0c083e0be1c9d887ee2f3d696922bfc5c1 · WEB
- https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5 · WEB
- https://github.com/pallets/werkzeug/commit/f2300208d5e2a5076cbbb4c2aad71096fd040ef9 · WEB
- https://github.com/pallets/werkzeug · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2023-221.yaml · WEB
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 25 Oct 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Oct 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Oct 2023)