Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify FastAPI/Starlette form endpoint
-
DeliveryCraft semicolon-separated urlencoded body
-
ExploitPOST with application/x-www-form-urlencoded
-
InstallTrigger O(B²) scan in QuerystringParser
-
C2Pin worker process for seconds
-
ExecuteRepeat concurrently
-
ImpactExhaust worker pool and deny service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires only that the target application calls request.form() (or directly uses QuerystringParser, FormParser, create_form_parser, or parse_form) on a request whose Content-Type is application/x-www-form-urlencoded, and that the deployed python-multipart version is below 0.0.30 - both are default conditions for any Starlette or FastAPI app that accepts form submissions. No authentication, user interaction, or non-default configuration is required (CVSS PR:N/UI:N). The attack is bounded only by the maximum request body size enforced upstream (reverse proxy, ASGI server limits) and by worker concurrency; deployments with strict body-size caps under ~100 KiB or aggressive per-request CPU timeouts will see materially reduced impact, and routes that never call request.form() are not reachable through this vector. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5 High) correctly captures this as a remote, unauthenticated, low-complexity availability-only attack - consistent with the description: any endpoint that calls request.form() is reachable with a small crafted body. EPSS and CISA KEV status were not supplied in the input, and there is no public exploit identified at time of analysis, so this currently reads as a theoretically straightforward but not yet weaponized DoS. Real-world impact is meaningful because python-multipart underpins Starlette and FastAPI form parsing, giving it a very wide blast radius across Python web services; however the attack only degrades availability (no confidentiality or integrity impact), and most production deployments sit behind reverse proxies, WAFs, or ASGI servers that enforce request size and timeout limits, which materially reduce exploitability. Treat as a priority patch for any Starlette/FastAPI service that accepts form-encoded bodies from untrusted clients, but not on par with an RCE. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a POST request with Content-Type: application/x-www-form-urlencoded and a ~1 MiB body of the form 'a;a;a;...' to any FastAPI or Starlette endpoint that invokes request.form() - including login forms, search forms, or any route that accepts form input. The synchronous QuerystringParser performs ~10^11 byte comparisons, pinning a worker process for several seconds; a handful of concurrent such requests saturate the worker pool and deny service to legitimate users. The GHSA advisory documents the exact payload pattern, lowering the barrier to building a working PoC. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 15, 2026
Uncontrolled CPU consumption in python-multipart's QuerystringParser (versions <0.0.30) allows remote unauthenticated attackers to cause denial of service by submitting small crafted application/x-www-form-urlencoded bodies using semicolons as field separators. The two-step separator lookup degenerates into O(B²) byte comparisons, letting a ~1 MiB body burn seconds of CPU per request and exhaust workers in Starlette/FastAPI applications that call request.form(). No public exploit identified at time of analysis, though a clear proof-of-concept payload pattern (a;a;a;...) is described in the GHSA advisory.
RemediationAI
Vendor-released patch: upgrade python-multipart to 0.0.30 or later, which uses a single bounded scan and only honors & as a field separator per the WHATWG URL standard, restoring linear-time parsing. Pin the constraint in requirements.txt/pyproject.toml (python-multipart>=0.0.30) and ensure transitive resolution in Starlette/FastAPI projects actually picks up the fix (verify with pip show python-multipart). If you cannot upgrade immediately, compensating controls include enforcing a tight maximum request body size at the reverse proxy or ASGI layer (e.g., nginx client_max_body_size, Uvicorn --limit-max-requests) to cap the quadratic cost, adding per-request CPU/time limits in the web server, or rejecting application/x-www-form-urlencoded bodies that contain semicolons before they reach the parser - note the last option will break any legitimate clients still sending semicolon-separated form data, though that pattern was deprecated by WHATWG. Refer to https://github.com/Kludex/python-multipart/security/advisories/GHSA-5rvq-cxj2-64vf for vendor guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
python-multipart is a streaming parser for multipart/form-data and application/x-www-form-urlencoded bodies, used as the default form parser by Starlette and FastAPI via request.form(). The flaw lives in python_multipart/multipart.py where the FIELD_NAME and FIELD_DATA state handlers call data.find(b"&", i) before falling back to data.find(b";", i); when the body uses only semicolons, the first call performs a full failed scan of the remaining buffer on every field iteration. This is a textbook CWE-400 (Uncontrolled Resource Consumption) algorithmic complexity attack - the per-chunk cost scales as O(B²) in body size B, which is amplified because parsing is synchronous and blocks the handling worker. The affected package is identified by pkg:pip/python-multipart and the fix (0.0.30) realigns behavior with the WHATWG URL standard by treating only & as the separator using a single bounded scan.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Reachable over the network on default form endpoints with no auth or user interaction; availability-only impact via CPU exhaustion, no confidentiality or integrity effect.
Primary rating from Vendor (https://github.com/Kludex/python-multipart).
CVSS VectorVendor: https://github.com/Kludex/python-multipart
DescriptionCVE.org
Summary
When parsing application/x-www-form-urlencoded bodies, QuerystringParser located the field separator with a two step lookup: it first scanned the entire remaining buffer for &, and only when no & existed anywhere ahead did it fall back to scanning for ;. For a body that uses ; as the separator and contains no &, every field iteration performed a full failed & scan over the entire remaining buffer before locating the nearby ;. With N semicolon separated fields in a chunk of size B, this yields O(B^2) byte comparisons per chunk.
An attacker can submit a small crafted body of the form a;a;a;... and cause the parser to spend seconds of CPU per request. A handful of concurrent requests can exhaust worker processes.
Details
In python_multipart/multipart.py, both the FIELD_NAME and FIELD_DATA states located the next separator like this:
sep_pos = data.find(b"&", i)
if sep_pos == -1:
sep_pos = data.find(b";", i)data.find(b"&", i) scans from i to the end of the buffer and returns -1 only when there is no & anywhere in the remainder. For a ; separated body with no &, this failed full buffer scan repeats once per field, making parsing quadratic in the body length.
For example, a 1 MiB url encoded body consisting of a; repeated ~500,000 times, submitted with Content-Type: application/x-www-form-urlencoded, causes the parser to perform on the order of 10^11 byte comparisons, consuming several seconds of CPU for a single request. Cost scales quadratically with chunk size.
The parser is reachable through the public QuerystringParser class and through the high level FormParser, create_form_parser, and parse_form APIs for url encoded bodies. It is also the parser Starlette and FastAPI use for application/x-www-form-urlencoded request bodies via request.form().
Impact
Uncontrolled CPU consumption (denial of service). Parsing is synchronous, so a single small crafted form body occupies the handling worker for seconds, blocking any other work on that worker until parsing finishes. Sustained concurrent requests keep workers continuously busy, degrading or denying service.
Mitigation
Upgrade to python-multipart 0.0.30 or later, which treats only & as a field separator (per the WHATWG URL standard) using a single bounded scan, making parsing linear in the body length.
Blast Radius
ecosystem impact- 5 pypi packages depend on python-multipart (5 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.0.30.
Executive ViewAI
python-multipart versions prior to 0.0.30 contain a remote denial of service vulnerability affecting FastAPI and Starlette applications. Unauthenticated attackers can exhaust server resources by submitting specially crafted form requests, potentially causing service unavailability. Organizations running these web frameworks should immediately identify vulnerable deployments and implement protective controls.
No vendor-released patch identified at time of analysis. Implement interim controls: (1) Web application firewall rules rejecting malformed form requests; (2) HTTP request rate limiting on endpoints processing form data; (3) Review application code to determine if form parsing via request.form() can be disabled; (4) Regular monitoring of vendor advisories for patch release.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| openSUSE Leap 16.0 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-38322
GHSA-5rvq-cxj2-64vf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB