CVE-2024-49767Werkzeug 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.
What to do
Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | quart | Fix pending | UBUNTU-CVE-2024-49767 | |
| Ubuntu 26.04 | quart | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | quart | Will not fix Per SUSE, appears to have been introduced here: https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5 | UBUNTU-CVE-2024-49767 | |
| Ubuntu 24.04 | python-werkzeug | Fixed | 3.0.1-3ubuntu0.2 | UBUNTU-CVE-2024-49767 |
| Ubuntu 24.04 | quart | Fix pending | UBUNTU-CVE-2024-49767 | |
| Ubuntu 22.04 | python-werkzeug | Fixed | 2.0.2+dfsg1-1ubuntu0.22.04.3 | UBUNTU-CVE-2024-49767 |
| Ubuntu 22.04 | quart | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | python-werkzeug | Not affected vulnerable_code_not_present | ||
| Debian 14 | python-werkzeug | Fixed | 3.1.3-2 | DEBIAN-CVE-2024-49767 |
| Debian 14 | quart | Fixed | 0.19.9-1 | DEBIAN-CVE-2024-49767 |
| Debian 13 | python-werkzeug | Fixed | 3.1.3-2 | DEBIAN-CVE-2024-49767 |
| Debian 13 | quart | Fixed | 0.19.9-1 | DEBIAN-CVE-2024-49767 |
| Debian 12 | python-werkzeug | Fixed | 2.2.2-3+deb12u1 | DEBIAN-CVE-2024-49767 |
| Debian 12 | quart | Fix pending | DEBIAN-CVE-2024-49767 | |
| Alpine Linux 3.24 | py3-werkzeug | Fixed | 3.0.6-r0 | ALPINE-CVE-2024-49767 |
| Alpine Linux 3.23 | py3-werkzeug | Fixed | 3.0.6-r0 | ALPINE-CVE-2024-49767 |
| Alpine Linux 3.22 | py3-werkzeug | Fixed | 3.0.6-r0 | ALPINE-CVE-2024-49767 |
| Alpine Linux 3.21 | py3-werkzeug | Fixed | 3.0.6-r0 | ALPINE-CVE-2024-49767 |
| Alpine Linux 3.20 | py3-werkzeug | Fixed | 3.0.6-r0 | ALPINE-CVE-2024-49767 |
| PyPI library | quart | Fixed | 0.20.0 | GHSA-q34m-jh98-gwm2 |
| PyPI library | werkzeug | Fixed | 3.0.6 | PYSEC-2026-3417 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pallets werkzeug: affected: >= 2.0.0rc1, < 3.0.6
- pallets Quart: affected: < 0.20.0
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.