CVE-2023-25577
Werkzeug may allow high resource usage when parsing multipart form data with many fields
Reported by github_m · Published February 14, 2023
werkzeug is fixed in 2.2.3 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| werkzeug | PyPI | 2.2.3 |
| kubeflow-pipelines-visualization-server | Chainguard | 2.4.0-r0 |
| python3-werkzeug-doc | Amazon Linux | 1.0.1-5.amzn2023.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pallets | werkzeug | < 2.2.3 |
| chainguard | kubeflow-pipelines-visualization-server | 0 |
| amazon:2023 | python3-werkzeug-doc | 0 |
| pallets | werkzeug | 0 |
| amazon:2023 | python3-werkzeug | 0 |
| PyPI | Werkzeug | 0 |
| wolfi | kubeflow-pipelines-visualization-server | 0 |
Timeline
- Feb 14, 2023 CVE Published
- Feb 15, 2023 EPSS Score (30 in total, the first dated here)
- Feb 4, 2026 CVE Updated
- Mar 9, 2026 Security Advisory (11 in total, the first dated here)
- Mar 10, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-25577
vulnetix vdb fixes CVE-2023-25577
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-25577/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/pallets/werkzeug/security/advisories/GHSA-xg9f-g7g7-2323 x_refsource_CONFIRM
- https://github.com/pallets/werkzeug/commit/517cac5a804e8c4dc4ed038bb20dacd038e7a9f1 x_refsource_MISC
- https://github.com/pallets/werkzeug/releases/tag/2.2.3 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-25577 advisory
- https://github.com/advisories/GHSA-xg9f-g7g7-2323 advisory
- https://github.com/pallets/werkzeug url
- https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2023-58.yaml advisory
- https://security.netapp.com/advisory/ntap-20230818-0003 advisory