{"id":"CVE-2024-49767","published":"2024-10-25T19:41:35Z","modified":"2026-05-20T22:24:47Z","title":"Werkzeug possible resource exhaustion when parsing file data in forms","vendor":"pallets","product":"werkzeug","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01095,"percentile":0.66342,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-q34m-jh98-gwm2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pallets/quart/commit/5e78c4169b8eb66b91ead3e62d44721b9e1644ee","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/quart/commit/abb04a512496206de279225340ed022852fbf51f","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/werkzeug/commit/50cfeebcb0727e18cc52ffbeb125f4a66551179b","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/werkzeug/releases/tag/3.0.6","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20250103-0007/","tags":[]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":13.27},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"pallets","affectedVersions":[{"vendor":"pallets","product":"werkzeug","versions":[">= 2.0.0rc1, < 3.0.6"]},{"vendor":"pallets","product":"Quart","versions":["< 0.20.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-10-25T20:06:53.070201Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Werkzeug","vulnerableRanges":[">=2.0.0rc1, <3.0.6"],"patched":["3.0.6"],"from":["GHSA-q34m-jh98-gwm2","PYSEC-2026-3417"],"provenance":"source"},{"ecosystem":"PyPI","package":"Quart","vulnerableRanges":["<0.20.0"],"patched":["0.20.0"],"from":["GHSA-q34m-jh98-gwm2","PYSEC-2026-1860"],"provenance":"source"}],"summary":{"text":"A resource exhaustion flaw in Werkzeug's MultiPartParser (werkzeug.formparser.MultiPartParser), which Werkzeug-based applications such as Flask apps use to parse multipart/form-data requests, causes the parser to allocate and hold memory in proportion to the upload size. An attacker who can reach a vulnerable application over the network, without authentication or user interaction, can send a specially crafted form submission that makes the parser consume roughly 3 to 8 times the upload size in main memory, leading to denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:56Z"},"euvd":{"id":"EUVD-2024-3107","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-46136","published":"2023-10-24","fixed":"3.0.1","kev":false},{"cve":"CVE-2024-34069","published":"2024-05-06","fixed":"3.0.3","kev":false,"link":{"from":"CVE-2024-34069","to":"CVE-2024-49767","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"3.0.3","toFixed":"3.0.6","daysApart":172}]}},{"cve":"CVE-2024-49766","published":"2024-10-25","fixed":"3.0.6","kev":false},{"cve":"CVE-2024-49767","published":"2024-10-25","fixed":"3.0.6","kev":false},{"cve":"CVE-2026-21860","published":"2026-01-08","fixed":"3.1.5","kev":false,"link":{"from":"CVE-2024-49767","to":"CVE-2026-21860","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"3.0.6","toFixed":"3.1.5","daysApart":440}]}},{"cve":"CVE-2026-102598","published":"2026-09-29","fixed":"3.1.9","kev":false}],"package":"PyPI:Werkzeug"}}