{"id":"UBUNTU-CVE-2024-49767","details":"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.","modified":"2026-05-20T16:09:31.549586216Z","published":"2024-10-25T20:15:00Z","related":["USN-7093-1"],"upstream":["CVE-2024-49767"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-49767"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-49767"},{"type":"REPORT","url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-q34m-jh98-gwm2"},{"type":"REPORT","url":"https://github.com/pallets/werkzeug/releases/tag/3.0.6"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7093-1"}],"affected":[{"package":{"name":"python-werkzeug","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-werkzeug?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.2+dfsg1-1ubuntu0.22.04.3"}]}],"versions":["1.0.1+dfsg1-2","2.0.2+dfsg1-1","2.0.2+dfsg1-1ubuntu0.22.04.1","2.0.2+dfsg1-1ubuntu0.22.04.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"2.0.2+dfsg1-1ubuntu0.22.04.3","binary_name":"python3-werkzeug"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-49767.json"}},{"package":{"name":"quart","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/quart?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.14.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-quart","binary_version":"0.14.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-49767.json"}},{"package":{"name":"python-werkzeug","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-werkzeug?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.1-3ubuntu0.2"}]}],"versions":["2.2.2-3","3.0.1-1","3.0.1-2","3.0.1-3","3.0.1-3ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.1-3ubuntu0.2","binary_name":"python3-werkzeug"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-49767.json"}},{"package":{"name":"quart","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/quart?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.18.3-2","0.19.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.19.4-1","binary_name":"python3-quart"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-49767.json"}},{"package":{"name":"quart","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/quart?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.20.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.20.0-1","binary_name":"python3-quart"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-49767.json"}},{"package":{"name":"quart","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/quart?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.20.0-1","0.20.0-3","0.20.0-4","0.20.0-5"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-quart","binary_version":"0.20.0-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-49767.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}