Starlette Denial of service (DoS) via multipart/form-data
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-770.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| encode | starlette | before 0.40.0 | 0.40.0 | Patch available | CNA |
| — | starlette (PyPI) | before 0.40.0 | 0.40.0 | Patch available | GHSA-f96h-pmfr-66vw |
- starlette Vendorencode Affected before 0.40.0 Fixed in 0.40.0 Patch available CNA
- starlette (PyPI) Vendor— Affected before 0.40.0 Fixed in 0.40.0 Patch available GHSA-f96h-pmfr-66vw
Remediation
- Fix · CNA starlette (encode) Fixed in 0.40.0
- Fix · GHSA-f96h-pmfr-66vw starlette (PyPI) Fixed in 0.40.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Lightspeed | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux AI (RHEL AI) | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2024-47874
- 2026-10-03 Alias added: GHSA-f96h-pmfr-66vw
- 2026-10-14 EPSS moved to the 50th–90th percentile
References
More encode vulnerabilities
- TI-2026-35991 Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks KEVCVSS 3.1MEDIUM 6.5
- TI-2026-78981 Django REST framework Accept header parsing causes excessive CPU use CVSS 3.1HIGH 7.5
- TI-2026-78978 Django REST framework JSONParser accepts attacker-chosen codecs CVSS 3.1HIGH 7.5
- TI-2024-16279 python-multipart vulnerable to content-type header Regular expression Denial of Service CVSS 3.1HIGH 7.5
- TI-2023-13590 Path traversal in encode Starlette CVSS 3.1HIGH 7.5
- TI-2026-51365 Uncontrolled resource consumption in encode django-rest-framework CVSS 3.1MEDIUM 5.3
Sources
- CVE-2024-47874 · CVE Program
- CVE-2024-47874 · NVD
- FIRST EPSS
- GHSA-f96h-pmfr-66vw · GitHub Advisory Database · CC BY 4.0
- CVE-2024-47874 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences