CVE-2023-25577: Werkzeug may allow high resource usage when parsing multipart form data with many fields

Published Feb 14, 2023
·
Updated

A flaw was found in python-werkzeug. Werkzeug is multipart form data parser, that will parse an unlimited number of parts, including file parts. These parts can be a small amount of bytes, but each requires CPU time to parse, and may use more memory as Python data. If a request can be made to an endpoint that accesses request.data, request.form, request.files, or request.getdata(parseformdata=False), it can cause unexpectedly high resource usage, allowing an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests, and if many concurrent requests are sent continuously, this can exhaust or kill all available workers.

Other sources

Pallets Werkzeug is vulnerable to a denial of service, caused by a flaw when parsing multipart form data with many fields. By sending a specially-crafted request, a remote attacker could exploit this vulnerability to cause a denial of service condition.

IBM

Werkzeug is a comprehensive WSGI web application library. Prior to version 2.2.3, Werkzeug's multipart form data parser will parse an unlimited number of parts, including file parts. Parts can be a small amount of bytes, but each requires CPU time to parse and may use more memory as Python data. If a request can be made to an endpoint that accesses request.data, request.form, request.files, or request.getdata(parseformdata=False), it can cause unexpectedly high resource usage. This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests. The amount of RAM required can trigger an out of memory kill of the process. Unlimited file parts can use up memory and file handles. If many concurrent requests are sent continuously, this can exhaust or kill all available workers. Version 2.2.3 contains a patch for this issue.

Werkzeug's multipart form data parser will parse an unlimited number of parts, including file parts. Parts can be a small amount of bytes, but each requires CPU time to parse and may use more memory as Python data. If a request can be made to an endpoint that accesses request.data, request.form, request.files, or request.getdata(parseformdata=False), it can cause unexpectedly high resource usage.

This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests. The amount of RAM required can trigger an out of memory kill of the process. Unlimited file parts can use up memory and file handles. If many concurrent requests are sent continuously, this can exhaust or kill all available workers.

Red Hat

Affected Software

12 affected componentsFixes available
redhat/python-werkzeug<0:2.0.3-5.el8
0:2.0.3-5.el8
redhat/python-werkzeug<0:2.0.3-4.el9
0:2.0.3-4.el9
redhat/python-werkzeug<0:1.0.1-3.el8
0:1.0.1-3.el8
redhat/python-werkzeug<0:0.14.1-3.1.el7
0:0.14.1-3.1.el7
redhat/python-werkzeug<0:0.14.1-12.el8
0:0.14.1-12.el8
redhat/python-werkzeug<0:2.0.1-5.el9
0:2.0.1-5.el9
debian/python-werkzeug<=0.14.1+dfsg1-4+deb10u1
0.14.1+dfsg1-4+deb10u21.0.1+dfsg1-2+deb11u12.2.2-3
pip/Werkzeug<2.2.3
2.2.3
palletsprojects Werkzeug<2.2.3
redhat/python-werkzeug<2.2.3
2.2.3
IBM QRadar SIEM<=7.5 - 7.5.0 UP9 IF03
IBM QRadar Incident Forensics<=7.5 - 7.5.0 UP9 IF03

Event History

Feb 14, 2023
CVE Published
12:00 AM
CVE Published
via MITRE·07:56 PM
Data Sourced
via MITRE·07:56 PM
DescriptionSeverityWeakness
Feb 15, 2023
Advisory Published
via GitHub·03:36 PM
Feb 16, 2023
Data Sourced
via Red Hat·12:10 AM
DescriptionSeverityAffected Software
Oct 17, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-25577?

CVE-2023-25577 is a vulnerability found in python-werkzeug, a multipart form data parser that can parse an unlimited number of parts, including file parts, which can consume CPU time and memory.

2

What is the severity of CVE-2023-25577?

CVE-2023-25577 has a severity rating of 7.5 (high).

3

How does CVE-2023-25577 affect software?

CVE-2023-25577 affects versions of python-werkzeug up to and including 2.2.3.

4

How can I fix CVE-2023-25577?

To fix CVE-2023-25577, upgrade python-werkzeug to version 2.2.3 or apply the appropriate security patch provided by your vendor.

5

Where can I find more information about CVE-2023-25577?

You can find more information about CVE-2023-25577 on the CVE website, NVD, and the GitHub repositories for python-werkzeug.

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
CVE-2023-25577 - Werkzeug may allow high resource usage when parsing multipart form data with many fields - SecAlerts