# 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

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.29%, higher than 71% of CVEs (2026-12-01)
- Published: 2023-10-24T23:48:56.960Z
- Modified: 2026-09-10T03:50:03.799Z
- Also known as: GHSA-hrfv-mqp8-q5rw, PYSEC-2023-221
- Weaknesses: CWE-400, CWE-407, CWE-787
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pallets werkzeug: >= 3.0.0, < 3.0.1; >= 2.0.0rc1, < 2.3.8
- werkzeug (PyPI): from 3.0.0 before 3.0.1; from 2.0.0rc1 before 2.3.8; before f3c803b3ade485a45f12b6d6617595350c0f03e2; before f2300208d5e2a5076cbbb4c2aad71096fd040ef9; before 2.3.8
- palletsprojects werkzeug: before 2.3.8; 3.0.0

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/pallets/werkzeug/security/advisories/GHSA-hrfv-mqp8-q5rw> (advisory, vendor-advisory, web)
- <https://github.com/pallets/werkzeug/commit/f3c803b3ade485a45f12b6d6617595350c0f03e2> (fix, patch, web)
- <https://security.netapp.com/advisory/ntap-20231124-0008/> (third-party-advisory)
- <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)
- <https://security.netapp.com/advisory/ntap-20231124-0008> (web)

## Sources

- CVE List: [CVE-2023-46136](https://www.cve.org/CVERecord?id=CVE-2023-46136), CVE Terms of Use, modified 2026-05-20
- GitHub Advisory Database: [GHSA-hrfv-mqp8-q5rw](https://github.com/advisories/GHSA-hrfv-mqp8-q5rw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-46136](https://nvd.nist.gov/vuln/detail/CVE-2023-46136), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-221](https://osv.dev/vulnerability/PYSEC-2023-221), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-46136 · Whole record: https://cve.day/CVE-2023-46136.json · Rebuilt by cve.day 2026-11-25T22:58:29.091Z
