# CVE-2023-25577: Werkzeug may allow high resource usage when parsing multipart form data with many fields

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.43%, higher than 73% of CVEs (2026-11-30)
- Published: 2023-02-14T19:56:26.346Z
- Modified: 2026-09-10T03:49:52.206Z
- Also known as: GHSA-xg9f-g7g7-2323, PYSEC-2023-58
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Werkzeug is a comprehensive WSGI web application library. Prior to version 2.2.3, Werkzeug's multipart form data parser will parse an unlimited number of parts, including file parts. Parts can be a small amount of bytes, but each requires CPU time to parse and may use more memory as Python data. If a request can be made to an endpoint that accesses `request.data`, `request.form`, `request.files`, or `request.get_data(parse_form_data=False)`, it can cause unexpectedly high resource usage. 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. Unlimited file parts can use up memory and file handles. If many concurrent requests are sent continuously, this can exhaust or kill all available workers. Version 2.2.3 contains a patch for this issue.

(As written by CVE List.)

## Affected

- pallets werkzeug: < 2.2.3
- werkzeug (PyPI): before 2.2.3; before 517cac5a804e8c4dc4ed038bb20dacd038e7a9f1
- palletsprojects werkzeug: before 2.2.3

## Every score

- GitHub_M: 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`
- GitHub: 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`
- 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`

## References

- <https://github.com/pallets/werkzeug/security/advisories/GHSA-xg9f-g7g7-2323> (advisory, vendor-advisory, web)
- <https://github.com/pallets/werkzeug/commit/517cac5a804e8c4dc4ed038bb20dacd038e7a9f1> (fix, patch, web)
- <https://github.com/pallets/werkzeug/releases/tag/2.2.3> (release-notes, web)
- <https://www.debian.org/security/2023/dsa-5470> (web)
- <https://security.netapp.com/advisory/ntap-20230818-0003/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25577> (advisory)
- <https://github.com/pallets/werkzeug> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2023-58.yaml> (web)
- <https://security.netapp.com/advisory/ntap-20230818-0003> (web)

## Sources

- CVE List: [CVE-2023-25577](https://www.cve.org/CVERecord?id=CVE-2023-25577), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-xg9f-g7g7-2323](https://github.com/advisories/GHSA-xg9f-g7g7-2323), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-25577](https://nvd.nist.gov/vuln/detail/CVE-2023-25577), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-58](https://osv.dev/vulnerability/PYSEC-2023-58), CC-BY-4.0, modified 2023-11-08

---

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