CVEfocus › CVE database › CVE-2024-49767

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

CVSS 6.9 MediumEPSS 1.5% (higher than 75% of CVEs)Published 2024-10-25Updated 2026-05-20Assigner: GitHub_M

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.

CWE-400CWE-770

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

14Fixed
3Fix pending
1Will not fix
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10quartFix pendingUBUNTU-CVE-2024-49767
Ubuntu 26.04quartNot affected
vulnerable_code_not_present
Ubuntu 25.10quartWill not fix
Per SUSE, appears to have been introduced here: https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5
UBUNTU-CVE-2024-49767
Ubuntu 24.04python-werkzeugFixed3.0.1-3ubuntu0.2UBUNTU-CVE-2024-49767
Ubuntu 24.04quartFix pendingUBUNTU-CVE-2024-49767
Ubuntu 22.04python-werkzeugFixed2.0.2+dfsg1-1ubuntu0.22.04.3UBUNTU-CVE-2024-49767
Ubuntu 22.04quartNot affected
vulnerable_code_not_present
Ubuntu 20.04python-werkzeugNot affected
vulnerable_code_not_present
Debian 14python-werkzeugFixed3.1.3-2DEBIAN-CVE-2024-49767
Debian 14quartFixed0.19.9-1DEBIAN-CVE-2024-49767
Debian 13python-werkzeugFixed3.1.3-2DEBIAN-CVE-2024-49767
Debian 13quartFixed0.19.9-1DEBIAN-CVE-2024-49767
Debian 12python-werkzeugFixed2.2.2-3+deb12u1DEBIAN-CVE-2024-49767
Debian 12quartFix pendingDEBIAN-CVE-2024-49767
Alpine Linux 3.24py3-werkzeugFixed3.0.6-r0ALPINE-CVE-2024-49767
Alpine Linux 3.23py3-werkzeugFixed3.0.6-r0ALPINE-CVE-2024-49767
Alpine Linux 3.22py3-werkzeugFixed3.0.6-r0ALPINE-CVE-2024-49767
Alpine Linux 3.21py3-werkzeugFixed3.0.6-r0ALPINE-CVE-2024-49767
Alpine Linux 3.20py3-werkzeugFixed3.0.6-r0ALPINE-CVE-2024-49767
PyPI libraryquartFixed0.20.0GHSA-q34m-jh98-gwm2
PyPI librarywerkzeugFixed3.0.6PYSEC-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.

References

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.