HighGHSA-xg9f-g7g7-2323CVE-2023-25577PYSEC-2023-58

High resource usage when parsing multipart form data with many fields

Published 15 Feb 2023 · Updated 10 Sept 2026

Is your project on an affected werkzeug?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.2.3
Fixed in
2.2.3
Update to the fixed version for your release line, for example:pip install 'werkzeug>=2.2.3'

Details

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.

Is GHSA-xg9f-g7g7-2323 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected werkzeug, and gives you the command that fixes it.

More advisories for werkzeug

  • MediumCVE-2026-102598Werkzeug safe_join() allows Windows special device names · 5 Oct 2026
  • MediumCVE-2026-27199 Werkzeug safe_join() allows Windows special device names · 19 Feb 2026
  • MediumCVE-2026-21860 Werkzeug safe_join() allows Windows special device names with compound extensions · 8 Jan 2026
  • MediumCVE-2025-66221Werkzeug safe_join() allows Windows special device names · 2 Dec 2025
  • MediumCVE-2024-49767Werkzeug possible resource exhaustion when parsing file data in forms · 25 Oct 2024
  • MediumCVE-2024-49766Werkzeug safe_join not safe on Windows · 25 Oct 2024
All 15 advisories for werkzeug

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.