{"id":"CVE-2024-49767","state":"PUBLISHED","title":"Werkzeug possible resource exhaustion when parsing file data in forms","description":"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.","publishedAt":"2024-10-25T19:41:35.029Z","updatedAt":"2026-05-20T22:24:47.608Z","severity":{"score":6.9,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["pallets werkzeug","pallets Quart"],"affected":[{"vendor":"pallets","product":"werkzeug","versions":[{"version":">= 2.0.0rc1, < 3.0.6","status":"affected"}]},{"vendor":"pallets","product":"Quart","versions":[{"version":"< 0.20.0","status":"affected"}]}],"references":["https://github.com/pallets/werkzeug/security/advisories/GHSA-q34m-jh98-gwm2","https://github.com/pallets/quart/commit/5e78c4169b8eb66b91ead3e62d44721b9e1644ee","https://github.com/pallets/quart/commit/abb04a512496206de279225340ed022852fbf51f","https://github.com/pallets/werkzeug/commit/50cfeebcb0727e18cc52ffbeb125f4a66551179b","https://github.com/pallets/werkzeug/releases/tag/3.0.6","https://security.netapp.com/advisory/ntap-20250103-0007/"],"weaknesses":["CWE-400","CWE-770"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/49xxx/CVE-2024-49767.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-49767","state":"PUBLISHED","datePublished":"2024-10-25T19:41:35.029Z","dateUpdated":"2026-05-20T22:24:47.608Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-10-18T13:43:23.457Z"},"containers":{"cna":{"title":"Werkzeug possible resource exhaustion when parsing file data in forms","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"pallets","product":"werkzeug","versions":[{"version":">= 2.0.0rc1, < 3.0.6","status":"affected"}]},{"vendor":"pallets","product":"Quart","versions":[{"version":"< 0.20.0","status":"affected"}]}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-q34m-jh98-gwm2","name":"https://github.com/pallets/werkzeug/security/advisories/GHSA-q34m-jh98-gwm2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pallets/quart/commit/5e78c4169b8eb66b91ead3e62d44721b9e1644ee","name":"https://github.com/pallets/quart/commit/5e78c4169b8eb66b91ead3e62d44721b9e1644ee","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/quart/commit/abb04a512496206de279225340ed022852fbf51f","name":"https://github.com/pallets/quart/commit/abb04a512496206de279225340ed022852fbf51f","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/werkzeug/commit/50cfeebcb0727e18cc52ffbeb125f4a66551179b","name":"https://github.com/pallets/werkzeug/commit/50cfeebcb0727e18cc52ffbeb125f4a66551179b","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/werkzeug/releases/tag/3.0.6","name":"https://github.com/pallets/werkzeug/releases/tag/3.0.6","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-770","lang":"en","description":"CWE-770: Allocation of Resources Without Limits or Throttling","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-05-20T22:24:47.608Z"},"source":{"advisory":"GHSA-q34m-jh98-gwm2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"palletsprojects","product":"werkzeug","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.0.6","versionType":"custom"}],"cpes":["cpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-25T20:06:53.070201Z","id":"CVE-2024-49767","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-25T20:07:56.560Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20250103-0007/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-01-03T12:04:27.829Z"}}]}}}