QID 355110

Date Published: 2023-05-29

QID 355110: Amazon Linux Security Advisory for python-werkzeug : ALAS2023-2023-125

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. (
( CVE-2023-25577)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as High - 7.5 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2023-2023-125 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 355110

    Software Advisories
    Advisory ID Software Component Link
    ALAS2023-2023-125 amazon linux 2023 URL Logo alas.aws.amazon.com/AL2023/ALAS-2023-125.html