CVE-2024-47874: encode starlette
Vulnerability summary
CVE-2024-47874 is a high (CVSS 8.7) vulnerability in encode starlette. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 50.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Duplicates 1 · Related 1Timeline
- 15-10-2024PublishedVulnerability first disclosed.
- 21-11-2024Last modifiedVulnerability information updated.
Description
Starlette is an Asynchronous Server Gateway Interface (ASGI) framework/toolkit. Prior to version 0.40.0, Starlette treats `multipart/form-data` parts without a `filename` as text form fields and buffers those in byte strings with no size limit. This allows an attacker to upload arbitrary large form fields and cause Starlette to both slow down significantly due to excessive memory allocations and copy operations, and also consume more and more memory until the server starts swapping and grinds to a halt, or the OS terminates the server process with an OOM error. Uploading multiple such requests in parallel may be enough to render a service practically unusable, even if reasonable request size limits are enforced by a reverse proxy in front of Starlette. This Denial of service (DoS) vulnerability affects all applications built with Starlette (or FastAPI) accepting form requests. Verison 0.40.0 fixes this issue.
CVSS metrics
8 scores · 7 sources · 2 versions- OSV · PypiEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · WolfiEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- NVDNIST8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.65%
Chance of exploitation in the next 30 days
Percentile
50%
Versus all other CVEs
30-day change
0.00 pp
From 0.65% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard11 products
- kserveAll versions (No fix recorded)
- kserve-agentAll versions (No fix recorded)
- kserve-agent-compatAll versions (No fix recorded)
- kserve-managerAll versions (No fix recorded)
- kserve-manager-compatAll versions (No fix recorded)
Wolfi11 products
- kserveAll versions (No fix recorded)
- kserve-agentAll versions (No fix recorded)
- kserve-agent-compatAll versions (No fix recorded)
- kserve-managerAll versions (No fix recorded)
- kserve-manager-compatAll versions (No fix recorded)
Opensuse2 products
- python-starlette&distro=openSUSE Leap 15.6< 0.35.1-150600.3.3.1
- python-starlette&distro=openSUSE Tumbleweed< 0.41.0-1.1 | < 1.6.0-1.1
Debian1 product
- starlette< 0.26.1-1+deb12u1 | < 0.41.0-1
Encode1 product
- starlette< 0.40.0
PyPI1 product
- starlette< 0.40.0
Ubuntu1 product
- starletteAll versions (No fix recorded)
7 vendors · 28 products
References
14 links- github.com/encode/starlette/security/advisories/GHSA-f96h-pmfr-66vwX Refsource CONFIRMWEBREPORTAdvisory
- github.com/encode/starlette/commit/fd038f3070c302bff17ef7d173dbb0b007617733X Refsource MISCWEBFIXREPORT
- github.com/encode/starlettePACKAGE
- pypi.org/project/starlettePACKAGE
Show all 14 references
- lists.opensuse.org/archives/…Advisory