cve.bz

CVE-2024-24762 fastapiexpert python-multipart: Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 1.5%Fix available

High (7.5) in fastapiexpert python-multipart. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in python-multipart 0.0.7.

On this page
`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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-02-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-1333 Inefficient Regular Expression Complexity
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-24762 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-24762?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-24762?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-24762 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Kludex python-multipartbefore 0.0.7
tiangolo fastapibefore 0.109.1
encode starlettebefore 0.36.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2jv5-9r88-3w3pPyPIpython-multipart<0.0.70.0.7
PYSEC-2024-38PyPIfastapi<0.109.10.109.1
PYSEC-2026-1850PyPIpython-multipart<0.0.70.0.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-multipartno fix listedDEBIAN-CVE-2024-24762
Debian13, 14python-multipart0.0.9-1DEBIAN-CVE-2024-24762
UbuntuPro:22.04:LTSpython-multipart0.0.5-2ubuntu0.1~esm1UBUNTU-CVE-2024-24762 USN-8027-1
UbuntuPro:24.04:LTSpython-multipart0.0.9-1ubuntu0.1~esm1USN-8027-1
openSUSETumbleweedpython-fastapi0.138.0-2.1openSUSE-SU-2026:11710-1
openSUSETumbleweedpython-python-multipart0.0.32-1.3openSUSE-SU-2026:12032-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON