CVEfocus › CVE database › CVE-2023-25577

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

CVSS 7.5 HighEPSS 1.4% (higher than 73% of CVEs)Published 2023-02-14Updated 2025-03-10Assigner: GitHub_M

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.get_data(parse_form_data=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.

CWE-770

What to do

Fixed builds are available from Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Red Hat, 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

7Fixed
4Fix pending

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 22.04python-werkzeugFixed2.0.2+dfsg1-1ubuntu0.22.04.1UBUNTU-CVE-2023-25577
Ubuntu 20.04python-werkzeugFixed0.16.1+dfsg1-2ubuntu0.1UBUNTU-CVE-2023-25577
Ubuntu 18.04python-werkzeugFixed0.14.1+dfsg1-1ubuntu0.2UBUNTU-CVE-2023-25577
Ubuntu 16.04python-werkzeugFix pending0.10.4+dfsg1-1ubuntu1.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-25577
Ubuntu 14.04python-werkzeugFix pending
Debian 14python-werkzeugFixed2.2.2-3DEBIAN-CVE-2023-25577
Debian 13python-werkzeugFixed2.2.2-3DEBIAN-CVE-2023-25577
Debian 12python-werkzeugFixed2.2.2-3DEBIAN-CVE-2023-25577
Red Hat Enterprise Linux 8python3-werkzeugFix pending
Affected
Red Hat Enterprise Linux 7python-werkzeugFix pending
Affected
PyPI librarywerkzeugFixed2.2.3PYSEC-2023-58

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.