Werkzeug possible resource exhaustion when parsing file data in forms
Published 25 Oct 2024 · Updated 10 Sept 2026
Is your project on an affected werkzeug?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=2.0.0rc1 <3.0.6
- Fixed in
- 3.0.6
pip install 'werkzeug>=3.0.6'- Affected
- <0.20.0
- Fixed in
- 0.20.0
pip install 'quart>=0.20.0'Details
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.
The 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.
Is GHSA-q34m-jh98-gwm2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected werkzeug, and gives you the command that fixes it.
More advisories for werkzeug
- MediumCVE-2026-102598Werkzeug safe_join() allows Windows special device names · 5 Oct 2026
- MediumCVE-2026-27199 Werkzeug safe_join() allows Windows special device names · 19 Feb 2026
- MediumCVE-2026-21860 Werkzeug safe_join() allows Windows special device names with compound extensions · 8 Jan 2026
- MediumCVE-2025-66221Werkzeug safe_join() allows Windows special device names · 2 Dec 2025
- MediumCVE-2024-49766Werkzeug safe_join not safe on Windows · 25 Oct 2024
- HighCVE-2024-34069Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain · 6 May 2024
References
- Linkgithub.com/pallets/werkzeug/security/advisories/GHSA-q34m-jh98-gwm2
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-49767
- Linkgithub.com/pallets/quart/commit/5e78c4169b8eb66b91ead3e62d44721b9e1644ee
- Linkgithub.com/pallets/quart/commit/abb04a512496206de279225340ed022852fbf51f
- Linkgithub.com/pallets/werkzeug/commit/50cfeebcb0727e18cc52ffbeb125f4a66551179b
- Linkgithub.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5
- Packagegithub.com/pallets/werkzeug
- Linkgithub.com/pallets/werkzeug/releases/tag/3.0.6
- Linksecurity.netapp.com/advisory/ntap-20250103-0007
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.