{"cve":"CVE-2024-47874","nvd":{"published":"2024-10-15T16:15:05.260","modified":"2026-06-17T07:57:53.817","status":"Deferred","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_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7},"cvss_v3":null,"cwes":["CWE-770"],"references":["https://github.com/encode/starlette/commit/fd038f3070c302bff17ef7d173dbb0b007617733","https://github.com/encode/starlette/security/advisories/GHSA-f96h-pmfr-66vw"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:55:31.737901711+00:00"},"epss":{"cve":"CVE-2024-47874","score":0.00653,"percentile":0.51309,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f96h-pmfr-66vw","url":"https://osv.dev/vulnerability/GHSA-f96h-pmfr-66vw","summary":"Starlette Denial of service (DoS) via multipart/form-data","modified":"2026-09-10T03:50:19.756287586Z","packages":[{"ecosystem":"PyPI","name":"starlette","purl":"pkg:pypi/starlette","ranges":["<0.40.0"],"fixed":["0.40.0"]}]},{"id":"PYSEC-2026-1943","url":"https://osv.dev/vulnerability/PYSEC-2026-1943","summary":"Starlette Denial of service (DoS) via multipart/form-data","modified":"2026-07-07T17:47:58.815486711Z","packages":[{"ecosystem":"PyPI","name":"starlette","purl":"pkg:pypi/starlette","ranges":["<0.40.0"],"fixed":["0.40.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}