CVE-2024-24762

python-multipart vulnerable to content-type header Regular expression Denial of Service

HIGH
7.5
CVSS Score
Published: February 5, 2024 at 02:33 PM UTC
Updated: June 17, 2026 at 07:14 AM UTC
4 products affected across 4 vendorsPython MultipartStarlettePython Multipart

Using python-multipart by Kludex?

Get instant alerts when new vulnerabilities affect python-multipart - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%
SSVC
PoC

Description

`python-multipart` is a streaming multipart parser for Python. When using form data, `python-multipart` uses a Regular Expression to parse the HTTP `Content-Type` header, including options. An attacker could send a custom-made `Content-Type` option that is very difficult for the RegEx to process, consuming CPU resources and stalling indefinitely (minutes or more) while holding the main event loop. This means that process can't handle any more requests, leading to regular expression denial of service. This vulnerability has been patched in version 0.0.7.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.0.7
Affected range stops below 0.0.7, so it looks safe — our inference, not a vendor statement
encode-starlette (environment) · tiangolo-fastapi (environment)
v < 0.36.2
Affected range stops below 0.36.2, so it looks safe — our inference, not a vendor statement
v < 0.0.7
Affected range stops below 0.0.7, so it looks safe — our inference, not a vendor statement
v < 0.109.1
Affected range stops below 0.109.1, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-400CWE-1333

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card