CVE-2023-25577

Werkzeug may allow high resource usage when parsing multipart form data with many fields

Published Feb 14, 2023 CVSS 3.1 · 7.5 High EPSS 1.4% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3346-1 python-werkzeug security update
Debian DSA Debian DSA DSA-5470-1 python-werkzeug security update
EUVD EUVD EUVD-2023-0282 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.
Github GHSA Github GHSA GHSA-xg9f-g7g7-2323 High resource usage when parsing multipart form data with many fields
Ubuntu USN Ubuntu USN USN-5948-1 Werkzeug vulnerabilities
Ubuntu USN Ubuntu USN USN-5948-2 Werkzeug vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:ceph_storage:8.1::el9
Type Values Removed Values Added
First Time appeared Redhat ceph Storage
CPEs cpe:/a:redhat:ceph_storage:7.1::el8
Vendors & Products Redhat ceph Storage
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 10, 2025, 9:11 PM
Reserved
Feb 7, 2023, 5:10 PM
Status
Modified
Published
Feb 14, 2023, 8:15 PM
Modified
Jun 17, 2026, 5:41 AM
Severity
Important
Public date
Feb 14, 2023, 12:00 AM