CVEfocus › CVE database › CVE-2023-46136

CVE-2023-46136Werkzeug vulnerable to high resource usage when parsing multipart/form-data containing a…

CVSS 8.0 HighEPSS 1.3% (higher than 71% of CVEs)Published 2023-10-24Updated 2026-05-20Assigner: GitHub_M

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.

CWE-400CWE-407

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

11Fixed
1Will not fix
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Debian 14python-werkzeugFixed3.0.1-2DEBIAN-CVE-2023-46136
Debian 13python-werkzeugFixed3.0.1-2DEBIAN-CVE-2023-46136
Debian 12python-werkzeugFixed2.2.2-3+deb12u1DEBIAN-CVE-2023-46136
Red Hat Enterprise Linux 8python3-werkzeugNot affected
Red Hat Enterprise Linux 7python-werkzeugWill not fix
Out of support scope
Alpine Linux 3.24py3-werkzeugFixed2.3.7-r0ALPINE-CVE-2023-46136
Alpine Linux 3.23py3-werkzeugFixed2.3.7-r0ALPINE-CVE-2023-46136
Alpine Linux 3.22py3-werkzeugFixed2.3.7-r0ALPINE-CVE-2023-46136
Alpine Linux 3.21py3-werkzeugFixed2.3.7-r0ALPINE-CVE-2023-46136
Alpine Linux 3.20py3-werkzeugFixed2.3.7-r0ALPINE-CVE-2023-46136
Alpine Linux 3.19py3-werkzeugFixed2.3.7-r0ALPINE-CVE-2023-46136
Alpine Linux 3.18py3-werkzeugFixed2.3.7-r0ALPINE-CVE-2023-46136
PyPI librarywerkzeugFixed3.0.1GHSA-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.

References

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.