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

16 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
ubuntu/python-werkzeug<0.10.4+dfsg1-1ubuntu1.2+esm1
0.10.4+dfsg1-1ubuntu1.2+esm1
ubuntu/python-werkzeug<0.14.1+dfsg1-1ubuntu0.2
0.14.1+dfsg1-1ubuntu0.2
ubuntu/python-werkzeug<0.16.1+dfsg1-2ubuntu0.1
0.16.1+dfsg1-2ubuntu0.1
ubuntu/python-werkzeug<2.0.2+dfsg1-1ubuntu0.22.04.1
2.0.2+dfsg1-1ubuntu0.22.04.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:2.0.3-5.el8
  2. Upgrade

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

    Fixed in 0:2.0.3-4.el9
  3. Upgrade

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

    Fixed in 0:1.0.1-3.el8
  4. Upgrade

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

    Fixed in 0:0.14.1-3.1.el7
  5. Upgrade

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

    Fixed in 0:0.14.1-12.el8
  6. Upgrade

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

    Fixed in 0:2.0.1-5.el9
  7. Upgrade

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

    Fixed in 0.14.1+dfsg1-4+deb10u2Fixed in 1.0.1+dfsg1-2+deb11u1Fixed in 2.2.2-3
  8. Upgrade

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

    Fixed in 2.2.3
  9. Upgrade

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

    Fixed in 2.2.3
  10. Upgrade

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

    Fixed in 0.10.4+dfsg1-1ubuntu1.2+esm1
  11. Upgrade

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

    Fixed in 0.14.1+dfsg1-1ubuntu0.2
  12. Upgrade

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

    Fixed in 0.16.1+dfsg1-2ubuntu0.1
  13. Upgrade

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

    Fixed in 2.0.2+dfsg1-1ubuntu0.22.04.1
  14. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.2.3

Event History

Feb 14, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·07:56 PM
Data Sourced
via MITRE·07:56 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Feb 15, 2023
Advisory Published
03:36 PM
Aug 18, 2023
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·02:15 PM
Affected Software
Dec 13, 2023
Data Sourced
via Red Hat·07:12 PM
DescriptionSeverityAffected Software
Oct 17, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 19, 2024
Advisory Published
via GitHub·07:07 PM
Data Sourced
via GitHub·07:07 PM
DescriptionSeverityWeaknessAffected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
Affected Software
Jun 17, 2026
Updated
via NVD·05:41 AM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

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