PT-2026-49571 · Pypi+2 · Python-Multipart+2

·

CVE-2026-53539

·

Published

2026-06-15

·

Updated

2026-08-17

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions python-multipart versions prior to 0.0.30
Description A quadratic complexity issue exists when parsing application/x-www-form-urlencoded bodies. The QuerystringParser performs a two-step lookup for field separators, scanning the entire remaining buffer for & before falling back to ;. If a body uses ; as a separator and contains no &, every field iteration triggers a full failed scan of the remaining buffer, resulting in O(B^2) byte comparisons per chunk. An attacker can submit a crafted body consisting of repeated separators to cause excessive CPU consumption, which can exhaust worker processes and lead to a denial of service. This parser is accessible via the QuerystringParser class and the FormParser, create form parser, and parse form APIs, and is utilized by Starlette and FastAPI for request.form() calls.
Recommendations Upgrade to version 0.0.30 or later.

Exploit

Fix

DoS

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CLEANSTART-2026-EH47852
CLEANSTART-2026-GN02455
CVE-2026-53539
ECHO-1942-6E43-27D8
GHSA-5RVQ-CXJ2-64VF
OPENSUSE-SU-2026:21066-1
PYSEC-2026-3036
RHSA-2026:25039
SUSE-SU-2026:22372-1

Affected Products

Fastapi
Starlette
Python-Multipart