CVE-2023-46136: Werkzeug vulnerable to high resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning
Vulnerability summary
CVE-2023-46136 is a high (CVSS 8.0) Uncontrolled Resource Consumption vulnerability in pallets werkzeug. EPSS estimates a 1.29% chance of exploitation in the next 30 days, higher than 70.2% of scored vulnerabilities.
Not severe (CVSS 8, adjacent network); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 9Timeline
- 24-10-2023PublishedVulnerability first disclosed.
- 20-05-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
- OSV · WolfiEcosystem advisory · calculated8.0HighCVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.0HighCVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
1.29%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
Increase +0.22 pp
From 1.07% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-407Inefficient Algorithmic ComplexityAn algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Known conditions: adjacent network, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard12 products
- airflowAll versions (No fix recorded)
- airflow-2< 2.11.1-r0
- airflow-2-bitnami-compatAll versions (No fix recorded)
- airflow-3< 3.2.0-r0
- airflow-3-bitnami-compatAll versions (No fix recorded)
Wolfi9 products
- airflowAll versions (No fix recorded)
- airflow-3< 3.2.0-r0
- airflow-3-bitnami-compatAll versions (No fix recorded)
- airflow-bitnami-compatAll versions (No fix recorded)
- kubeflow-jupyter-web-app< 1.8.0-r2
Opensuse3 products
- python-Werkzeug&distro=openSUSE Leap 15.4< 2.3.6-150400.6.6.1
- python-Werkzeug&distro=openSUSE Leap 15.5< 2.3.6-150400.6.6.1
- python-Werkzeug&distro=openSUSE Tumbleweed< 3.0.1-1.1
Redhat2 products
- python-werkzeug< 0:2.0.3-5.el9 | < 0:2.0.1-8.el8ost | < 0:2.0.1-6.el9ost
- python3-werkzeug< 0:2.0.3-5.el9 | < 0:2.0.1-8.el8ost | < 0:2.0.1-6.el9ost
Suse2 products
- python-Werkzeug&distro=SUSE Linux Enterprise Module for Python 3 15 SP4< 2.3.6-150400.6.6.1
- python-Werkzeug&distro=SUSE Linux Enterprise Module for Python 3 15 SP5< 2.3.6-150400.6.6.1
Alpine1 product
- py3-werkzeug< 2.3.7-r0
Debian1 product
- python-werkzeug< 2.2.2-3+deb12u1 | < 3.0.1-2
Pallets1 product
- werkzeug≥ 3.0.0, < 3.0.1 | ≥ 2.0.0rc1, < 2.3.8
Palletsprojects1 product
- werkzeug< 2.3.8 | 3.0.0
PyPI1 product
- werkzeug≥ 2.0.0rc1, < 2.3.8 | < f2300208d5e2a5076cbbb4c2aad71096fd040ef9 | ≥ 3.0.0, < 3.0.1
10 vendors · 33 products
References
26 links- github.com/pallets/werkzeug/security/advisories/GHSA-hrfv-mqp8-q5rwX Refsource CONFIRMWEBAdvisoryARTICLEVendor Advisory
- github.com/pallets/werkzeug/commit/f3c803b3ade485a45f12b6d6617595350c0f03e2X Refsource MISCWEBFIXARTICLEPatch
Show all 26 references
- github.com/pallets/werkzeugPACKAGE