ADVISORIES

Red Hat VEX

RHVEX-CVE-2023-25577

python-werkzeug: high resource usage when parsing multipart form data with many fields

Important No fix available CVE-2023-25577

Details

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

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:7python-werkzeug
All versions, no fix yet
Red Hat:enterprise_linux:8python3-werkzeug
All versions, no fix yet

References