CVE-2024-24762: encode starlette Uncontrolled Resource Consumption
Vulnerability summary
CVE-2024-24762 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in encode starlette. EPSS estimates a 1.52% chance of exploitation in the next 30 days, higher than 74.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 4Timeline
- 05-02-2024PublishedVulnerability first disclosed.
- 09-05-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.52%
Chance of exploitation in the next 30 days
Percentile
74%
Versus all other CVEs
30-day change
+0.01 pp
From 1.51% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPython Multipart
Maturity: poc
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-1333Inefficient Regular Expression ComplexityThe product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
Affected systems
Opensuse2 products
- python-fastapi&distro=openSUSE Tumbleweed< 0.138.0-2.1
- python-python-multipart&distro=openSUSE Tumbleweed< 0.0.32-1.3
PyPI2 products
- fastapi< 9d34ad0ee8a0dfbbcce06f76c2d5d851085024fc | < 0.109.1
- python-multipart< 0.0.7
Chainguard1 product
- reflex< 0.4.0-r0
Debian1 product
- python-multipartAll versions (No fix recorded) | < 0.0.9-1
Encode1 product
- starlette< 0.36.2
Fastapiexpert1 product
- python-multipart< 0.0.7
Kludex1 product
- python-multipart< 0.0.7
Tiangolo1 product
- fastapi< 0.109.1
Ubuntu1 product
- python-multipart< 0.0.5-2ubuntu0.1~esm1
Wolfi1 product
- reflex< 0.4.0-r0
10 vendors · 12 products
References
23 links- github.com/Kludex/python-multipart/security/advisories/GHSA-2jv5-9r88-3w3pX Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/Kludex/python-multipart/commit/20f0ef6b4e4caf7d69a667c54dff57fe467109a4X Refsource MISCWEBFIXREPORTPatch
- github.com/tiangolo/fastapi/security/advisories/GHSA-qf9m-vfgh-m389X Refsource MISCWEBAdvisoryBroken Link
- github.com/encode/starlette/security/advisories/GHSA-93gm-qmq6-w238X Refsource MISCWEBAdvisoryBroken Link
- github.com/encode/starlette/commit/13e5c26a27f4903924624736abd6131b2da80cc5X Refsource MISCWEBFIXPatch
- github.com/tiangolo/fastapi/commit/9d34ad0ee8a0dfbbcce06f76c2d5d851085024fcX Refsource MISCWEBFIXPatch
Show all 23 references
- github.com/tiangolo/fastapiPACKAGE
- github.com/encode/starlettePACKAGE