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

Published Oct 25, 2024
·
Updated

Applications using Werkzeug to parse multipart/form-data requests are vulnerable to resource exhaustion. A specially crafted form body can bypass the Request.maxformmemorysize setting.

The Request.maxcontentlength 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.

Other sources

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 uppe

— IBM

Werkzeug possible resource exhaustion when parsing file data in forms

— Microsoft

Affected Software

25 affected componentsFixes available
pip/quart<0.20.0
0.20.0
pip/werkzeug<=3.0.5
3.0.6
palletsprojects Quart Python<0.19.7
palletsprojects Werkzeug<3.0.6
IBM Storage Defender - Resiliency Service<=2.0.0 - 2.0.9
Microsoft cbl2 python-werkzeug 2.3.7-3
Microsoft azl3 python-werkzeug 3.0.3-2
debian/python-werkzeug<2.2.2-3+deb12u1
2.2.2-3+deb12u1
debian/python-werkzeug<3.1.3-2
3.1.3-2
debian/python-werkzeug<3.1.3-2
3.1.3-2
debian/quart*
debian/quart<0.19.9-1
0.19.9-1
debian/quart<0.19.9-1
0.19.9-1
debian/python-werkzeug
2.2.2-3+deb12u13.1.3-23.1.9-1
debian/quart<=0.18.3-2
0.20.0-10.23.1-2
alpine/py3-werkzeug<3.0.6-r0
3.0.6-r0
alpine/py3-werkzeug<3.0.6-r0
3.0.6-r0
alpine/py3-werkzeug<3.0.6-r0
3.0.6-r0
alpine/py3-werkzeug<3.0.6-r0
3.0.6-r0
alpine/py3-werkzeug<3.0.6-r0
3.0.6-r0
ubuntu/python-werkzeug<2.0.2+dfsg1-1ubuntu0.22.04.3
2.0.2+dfsg1-1ubuntu0.22.04.3
ubuntu/python-werkzeug<3.0.1-3ubuntu0.2
3.0.1-3ubuntu0.2
ubuntu/quart*
ubuntu/quart*
ubuntu/quart*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/Quart to a version that resolves this vulnerability.

    Fixed in 0.20.0
  2. Upgrade

    Upgrade pip/werkzeug to a version that resolves this vulnerability.

    Fixed in 3.0.6
  3. Upgrade

    Upgrade debian/python-werkzeug to a version that resolves this vulnerability.

    Fixed in 2.2.2-3+deb12u1
  4. Upgrade

    Upgrade debian/python-werkzeug to a version that resolves this vulnerability.

    Fixed in 3.1.3-2
  5. Upgrade

    Upgrade debian/quart to a version that resolves this vulnerability.

    Fixed in 0.19.9-1
  6. Upgrade

    Upgrade debian/python-werkzeug to a version that resolves this vulnerability.

    Fixed in 2.2.2-3+deb12u1Fixed in 3.1.3-2Fixed in 3.1.9-1
  7. Upgrade

    Upgrade debian/quart to a version that resolves this vulnerability.

    Fixed in 0.20.0-1Fixed in 0.23.1-2
  8. Upgrade

    Upgrade alpine/py3-werkzeug to a version that resolves this vulnerability.

    Fixed in 3.0.6-r0
  9. Upgrade

    Upgrade ubuntu/python-werkzeug to a version that resolves this vulnerability.

    Fixed in 2.0.2+dfsg1-1ubuntu0.22.04.3
  10. Upgrade

    Upgrade ubuntu/python-werkzeug to a version that resolves this vulnerability.

    Fixed in 3.0.1-3ubuntu0.2
  11. Upgrade

    Upgrade Werkzeug to a version that resolves this vulnerability.

    Fixed in 3.0.6
  12. Configuration

    Set Request.max_form_memory_size and Request.max_content_length, along with resource limits provided by deployment software and platforms, to appropriately limit resources used during requests.

    Werkzeug form request handling Request.max_form_memory_size, Request.max_content_length, and deployment resource limits = Set appropriately

Event History

Oct 25, 2024
CVE Published
via MITRE·07:41 PM
Data Sourced
via MITRE·07:41 PM
DescriptionWeakness
Advisory Published
via GitHub·07:44 PM
Data Sourced
via GitHub·07:44 PM
DescriptionWeaknessAffected Software
Advisory Published
via GitHub·07:44 PM
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Nov 5, 2024
Data Sourced
via NVD·08:03 PM
RemedyAffected Software
Updated
via NVD·08:03 PM
Severity
Data Sourced
via GitHub·09:35 PM
Severity
Dec 7, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Dec 18, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Dec 27, 2024
Updated
via GitHub·07:50 PM
Affected Software
Updated
via NVD·09:15 PM
Affected Software
Updated
via GitHub·09:53 PM
Description
Jan 3, 2025
Updated
via NVD·12:15 PM
Affected Software
Event
via NVD·12:15 PM
Updated
via GitHub·12:31 PM
DescriptionAffected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
DescriptionAffected Software
Apr 30, 2025
Updated
via IBM·12:00 AM
DescriptionAffected Software
May 2, 2025
Updated
via IBM·12:00 AM
Affected Software
Jun 17, 2026
Updated
via NVD·08:00 AM
Affected Software
Nov 3, 2026
Updated
via OSV·06:32 AM
Affected Software
Nov 11, 2026
Updated
via OSV·09:38 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-49767?

CVE-2024-49767 is classified as a moderate severity vulnerability due to potential resource exhaustion.

2

How do I fix CVE-2024-49767?

To address CVE-2024-49767, upgrade to Quart version 0.20.0 or Werkzeug version 3.0.6 or later.

3

What applications are affected by CVE-2024-49767?

CVE-2024-49767 affects applications that use Werkzeug and Quart versions up to specific thresholds as noted in the affected software list.

4

Can CVE-2024-49767 impact my application's performance?

Yes, exploited properly, CVE-2024-49767 can lead to significant performance degradation or denial of service due to resource exhaustion.

5

Is my deployment at risk with CVE-2024-49767?

If you are using affected versions of Werkzeug or Quart, your deployment could be at risk for CVE-2024-49767 if proper mitigations are not in place.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203