# CVE-2024-47874: Starlette Denial of service (DoS) via multipart/form-data

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 59% of CVEs (2026-11-30)
- Published: 2024-10-15T15:45:03.555Z
- Modified: 2026-09-10T03:50:19.756Z
- Also known as: GHSA-f96h-pmfr-66vw, PYSEC-2026-1943
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- encode starlette: < 0.40.0; before 0.40.0
- starlette (PyPI): before 0.40.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:3.1 0.0 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:3.1 0.0 None `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/encode/starlette/security/advisories/GHSA-f96h-pmfr-66vw> (web)
- <https://github.com/encode/starlette/commit/fd038f3070c302bff17ef7d173dbb0b007617733> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47874> (advisory)
- <https://github.com/encode/starlette> (package)
- <https://pypi.org/project/starlette> (package)
- <https://github.com/advisories/GHSA-f96h-pmfr-66vw> (advisory)

## Sources

- CVE List: [CVE-2024-47874](https://www.cve.org/CVERecord?id=CVE-2024-47874), CVE Terms of Use, modified 2024-11-21
- GitHub Advisory Database: [GHSA-f96h-pmfr-66vw](https://github.com/advisories/GHSA-f96h-pmfr-66vw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-47874](https://nvd.nist.gov/vuln/detail/CVE-2024-47874), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1943](https://osv.dev/vulnerability/PYSEC-2026-1943), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-47874 · Whole record: https://cve.day/CVE-2024-47874.json · Rebuilt by cve.day 2026-11-25T22:58:46.760Z
