CVE-2023-46136Werkzeug vulnerable to high resource usage when parsing multipart/form-data containing a…
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.
What to do
Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.
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 |
|---|---|---|---|---|
| Debian 14 | python-werkzeug | Fixed | 3.0.1-2 | DEBIAN-CVE-2023-46136 |
| Debian 13 | python-werkzeug | Fixed | 3.0.1-2 | DEBIAN-CVE-2023-46136 |
| Debian 12 | python-werkzeug | Fixed | 2.2.2-3+deb12u1 | DEBIAN-CVE-2023-46136 |
| Red Hat Enterprise Linux 8 | python3-werkzeug | Not affected | ||
| Red Hat Enterprise Linux 7 | python-werkzeug | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | py3-werkzeug | Fixed | 2.3.7-r0 | ALPINE-CVE-2023-46136 |
| Alpine Linux 3.23 | py3-werkzeug | Fixed | 2.3.7-r0 | ALPINE-CVE-2023-46136 |
| Alpine Linux 3.22 | py3-werkzeug | Fixed | 2.3.7-r0 | ALPINE-CVE-2023-46136 |
| Alpine Linux 3.21 | py3-werkzeug | Fixed | 2.3.7-r0 | ALPINE-CVE-2023-46136 |
| Alpine Linux 3.20 | py3-werkzeug | Fixed | 2.3.7-r0 | ALPINE-CVE-2023-46136 |
| Alpine Linux 3.19 | py3-werkzeug | Fixed | 2.3.7-r0 | ALPINE-CVE-2023-46136 |
| Alpine Linux 3.18 | py3-werkzeug | Fixed | 2.3.7-r0 | ALPINE-CVE-2023-46136 |
| PyPI library | werkzeug | Fixed | 3.0.1 | GHSA-hrfv-mqp8-q5rw |
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: >= 3.0.0, < 3.0.1, >= 2.0.0rc1, < 2.3.8
References
- https://github.com/pallets/werkzeug/security/advisories/GHSA-hrfv-mqp8-q5rw
- https://github.com/pallets/werkzeug/commit/f3c803b3ade485a45f12b6d6617595350c0f03e2
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.