Vulnerability · Published Oct 25, 2024 · Assigned by GitHub_M

CVE-2024-49767Werkzeug possible resource exhaustion when parsing file data in forms

Medium 6.9

In plain English

A medium-severity uncontrolled resource consumption in Quart from pallets. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)1.1%top 34.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-werkzeug3.0.6-r0ALPINE-CVE-2024-49767
Alpine:v3.21py3-werkzeug3.0.6-r0ALPINE-CVE-2024-49767
Alpine:v3.22py3-werkzeug3.0.6-r0ALPINE-CVE-2024-49767
Alpine:v3.23py3-werkzeug3.0.6-r0ALPINE-CVE-2024-49767
Alpine:v3.24py3-werkzeug3.0.6-r0ALPINE-CVE-2024-49767
Debian:12python-werkzeug2.2.2-3+deb12u1DEBIAN-CVE-2024-49767
Debian:13python-werkzeug3.1.3-2DEBIAN-CVE-2024-49767
Debian:14python-werkzeug3.1.3-2DEBIAN-CVE-2024-49767
Debian:12quartno fix listedDEBIAN-CVE-2024-49767
Debian:13quart0.19.9-1DEBIAN-CVE-2024-49767
Debian:14quart0.19.9-1DEBIAN-CVE-2024-49767
PyPIquart0.20.0PYSEC-2026-1860
PyPIquart0.20.0GHSA-q34m-jh98-gwm2
PyPIwerkzeug3.0.6PYSEC-2026-3417
PyPIwerkzeug3.0.6GHSA-q34m-jh98-gwm2
Ubuntu:22.04:LTSpython-werkzeug2.0.2+dfsg1-1ubuntu0.22.04.3USN-7093-1
Ubuntu:22.04:LTSpython-werkzeug2.0.2+dfsg1-1ubuntu0.22.04.3UBUNTU-CVE-2024-49767
Ubuntu:24.04:LTSpython-werkzeug3.0.1-3ubuntu0.2USN-7093-1
Ubuntu:24.04:LTSpython-werkzeug3.0.1-3ubuntu0.2UBUNTU-CVE-2024-49767
Ubuntu:22.04:LTSquartno fix listedUBUNTU-CVE-2024-49767
Ubuntu:24.04:LTSquartno fix listedUBUNTU-CVE-2024-49767
Ubuntu:25.10quartno fix listedUBUNTU-CVE-2024-49767
Ubuntu:26.04:LTSquartno fix listedUBUNTU-CVE-2024-49767
Ubuntu:26.10quartno fix listedUBUNTU-CVE-2024-49767

Affected products (as reported)

VendorProductVersions
pallets werkzeug >= 2.0.0rc1, < 3.0.6
pallets Quart < 0.20.0

Weakness: CWE-400, CWE-770 · 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

References