{"id":"CVE-2024-49767","aliases":["CVE-2024-49767","GHSA-q34m-jh98-gwm2","PYSEC-2026-1860","PYSEC-2026-3417"],"related":[],"kind":"vulnerability","state":"published","title":"Werkzeug possible resource exhaustion when parsing file data in forms","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"Applications using Werkzeug to parse `multipart/form-data` requests are vulnerable to resource exhaustion. A specially crafted form body can bypass the `Request.max_form_memory_size` setting.\n\n\nThe `Request.max_content_length` setting, as well as resource limits provided by deployment software and platforms, are also available to limit the resources used during a request. This vulnerability does not affect those settings. All three types of limits should be considered and set appropriately when deploying an application.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Werkzeug es una librería de aplicaciones web de interfaz de puerta de enlace de servidor web. Las aplicaciones que utilizan `werkzeug.formparser.MultiPartParser` correspondiente a una versión de Werkzeug anterior a la 3.0.6 para analizar solicitudes `multipart/form-data` (por ejemplo, todas las aplicaciones Flask) son vulnerables a un ataque de agotamiento de recursos (denegación de servicio) relativamente simple pero efectivo. Una solicitud de envío de formulario manipulada específicamente puede hacer que el analizador asigne y bloquee de 3 a 8 veces el tamaño de carga en la memoria principal. No hay un límite superior; una sola carga a 1 Gbit/s puede agotar 32 GB de RAM en menos de 60 segundos. La versión 3.0.6 de Werkzeug corrige este problema.","source":"nvd"}],"published":"2024-10-25T19:41:35.029Z","modified":"2026-09-10T03:50:19.984Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":">= 2.0.0rc1, < 3.0.6","status":"affected"}],"vendor":"pallets","product":"werkzeug","source":"cvelist"},{"ranges":[{"version":"< 0.20.0","status":"affected"}],"vendor":"pallets","product":"Quart","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.0.6","status":"affected"}],"vendor":"palletsprojects","product":"werkzeug","cpe":"cpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0rc1","status":"affected","fixed":"3.0.6"}],"ecosystem":"PyPI","package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.20.0"}],"ecosystem":"PyPI","package":"quart","purl":"pkg:pypi/quart","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.19.7"}],"vendor":"palletsprojects","product":"quart","cpe":"cpe:2.3:a:palletsprojects:quart:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.0.6"}],"vendor":"palletsprojects","product":"werkzeug","cpe":"cpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.20.0"}],"ecosystem":"PyPI","package":"quart","purl":"pkg:pypi/quart","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0rc1","status":"affected","fixed":"3.0.6"}],"ecosystem":"PyPI","package":"werkzeug","purl":"pkg:pypi/werkzeug","source":"pysec"}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-q34m-jh98-gwm2","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pallets/quart/commit/5e78c4169b8eb66b91ead3e62d44721b9e1644ee","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pallets/quart/commit/abb04a512496206de279225340ed022852fbf51f","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pallets/werkzeug/commit/50cfeebcb0727e18cc52ffbeb125f4a66551179b","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/pallets/werkzeug/releases/tag/3.0.6","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.netapp.com/advisory/ntap-20250103-0007/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49767","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pallets/werkzeug","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://security.netapp.com/advisory/ntap-20250103-0007","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/quart","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-q34m-jh98-gwm2","tags":["advisory"],"sources":["pysec"]},{"url":"https://pypi.org/project/werkzeug","tags":["package"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-25T20:06:53.070Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49767","url":"https://www.cve.org/CVERecord?id=CVE-2024-49767","licence":"CVE Terms of Use","modified":"2026-05-20T22:24:47.608Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q34m-jh98-gwm2","url":"https://github.com/advisories/GHSA-q34m-jh98-gwm2","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:19.984Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49767","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49767","licence":"Public domain","modified":"2026-06-17T08:00:24.643Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1860","url":"https://osv.dev/vulnerability/PYSEC-2026-1860","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:34.482Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3417","url":"https://osv.dev/vulnerability/PYSEC-2026-3417","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:34.482Z"}],"updatedAt":"2026-11-25T22:58:47.349Z","epss":{"score":0.01095,"percentile":0.66465,"date":"2026-12-01T12:00:22.000Z"}}