CVE-2023-25577Werkzeug may allow high resource usage when parsing multipart form data with many fields
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.
What to do
Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | python-werkzeug | Fixed | 2.0.2+dfsg1-1ubuntu0.22.04.1 | UBUNTU-CVE-2023-25577 |
| Ubuntu 20.04 | python-werkzeug | Fixed | 0.16.1+dfsg1-2ubuntu0.1 | UBUNTU-CVE-2023-25577 |
| Ubuntu 18.04 | python-werkzeug | Fixed | 0.14.1+dfsg1-1ubuntu0.2 | UBUNTU-CVE-2023-25577 |
| Ubuntu 16.04 | python-werkzeug | Fix pending | 0.10.4+dfsg1-1ubuntu1.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-25577 |
| Ubuntu 14.04 | python-werkzeug | Fix pending | ||
| Debian 14 | python-werkzeug | Fixed | 2.2.2-3 | DEBIAN-CVE-2023-25577 |
| Debian 13 | python-werkzeug | Fixed | 2.2.2-3 | DEBIAN-CVE-2023-25577 |
| Debian 12 | python-werkzeug | Fixed | 2.2.2-3 | DEBIAN-CVE-2023-25577 |
| Red Hat Enterprise Linux 8 | python3-werkzeug | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | python-werkzeug | Fix pending Affected | ||
| PyPI library | werkzeug | Fixed | 2.2.3 | PYSEC-2023-58 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pallets werkzeug: affected: < 2.2.3
References
- https://github.com/pallets/werkzeug/security/advisories/GHSA-xg9f-g7g7-2323
- https://github.com/pallets/werkzeug/commit/517cac5a804e8c4dc4ed038bb20dacd038e7a9f1
- https://github.com/pallets/werkzeug/releases/tag/2.2.3
- https://www.debian.org/security/2023/dsa-5470
- https://security.netapp.com/advisory/ntap-20230818-0003/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.