CVE-2024-49767
MEDIUM 6.9CVSS 4.0Werkzeug possible resource exhaustion when parsing file data in forms
Werkzeug is a Web Server Gateway Interface web application library. Applications using werkzeug.formparser.MultiPartParser corresponding to a version of Werkzeug prior to 3.0.6 to parse multipart/form-data requests (e.g. all flask applications) are vulnerable to a relatively simple but effective resource exhaustion (denial of service) attack. A specifically crafted form submission request can cause the parser to allocate and block 3 to 8 times the upload size in main memory. There is no upper limit; a single upload at 1 Gbit/s can exhaust 32 GB of RAM in less than 60 seconds. Werkzeug version 3.0.6 fixes this issue.
- Published
- 25 Oct 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-q34m-jh98-gwm2PYSEC-2026-1860PYSEC-2026-3417
- Sources
- NVDJSONOSV GHSA-q34m-jh98-gwm2JSONOSV PYSEC-2026-1860JSONOSV PYSEC-2026-3417JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | palletsprojects | quartcpe:2.3:a:palletsprojects:quart:*:*:*:*:*:python:*:* |
< 0.19.7 | 0.19.7 |
| NVD | palletsprojects | werkzeugcpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:* |
< 3.0.6 | 3.0.6 |
| OSV | PyPI | werkzeug | >= 2.0.0rc1, < 3.0.6 | 3.0.6 |
| OSV | PyPI | quart | < 0.20.0 | 0.20.0 |
References
- https://github.com/pallets/quart/commit/5e78c4169b8eb66b91ead3e62d44721b9e1644ee · Patch, WEB
- https://github.com/pallets/quart/commit/abb04a512496206de279225340ed022852fbf51f · WEB
- https://github.com/pallets/werkzeug/commit/50cfeebcb0727e18cc52ffbeb125f4a66551179b · Patch, WEB
- https://github.com/pallets/werkzeug/releases/tag/3.0.6 · Release Notes, WEB
- https://github.com/pallets/werkzeug/security/advisories/GHSA-q34m-jh98-gwm2 · Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20250103-0007/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-49767 · ADVISORY
- https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5 · WEB
- https://github.com/pallets/werkzeug · PACKAGE
- https://pypi.org/project/quart · PACKAGE
- https://github.com/advisories/GHSA-q34m-jh98-gwm2 · ADVISORY
- https://pypi.org/project/werkzeug · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 25 Oct 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Oct 2024)