Skip to main content

python-multipart EUVDEUVD-2026-38322

| CVE-2026-53539 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-06-15 https://github.com/Kludex/python-multipart GHSA-5rvq-cxj2-64vf
7.5
CVSS 3.1 · Vendor: https://github.com/Kludex/python-multipart
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify FastAPI/Starlette form endpoint
  2. Delivery
    Craft semicolon-separated urlencoded body
  3. Exploit
    POST with application/x-www-form-urlencoded
  4. Install
    Trigger O(B²) scan in QuerystringParser
  5. C2
    Pin worker process for seconds
  6. Execute
    Repeat concurrently
  7. Impact
    Exhaust 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

python-multipart < 0.0.30

Affected Packages

pypi python-multipart fix: 0.0.30

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

Vendor (https://github.com/Kludex/python-multipart) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 5.9 MEDIUM

Primary rating from Vendor (https://github.com/Kludex/python-multipart).

CVSS VectorVendor: https://github.com/Kludex/python-multipart

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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:

python
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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 5 pypi packages depend on python-multipart (5 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.0.30.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating 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

EPSS Score
0.3%
Top 83% exploitable
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy