# CVE-2024-47874: starlette: Starlette is an Asynchronous Server Gateway Interface (ASGI) framework/toolkit

CVE-2024-47874 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2024-47874, released October 15, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-47874
- Priority: Routine
- CVSS: n/a
- EPSS: 0.0065
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 15, 2024

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-starlette opensuse-leap 15.6 | 0.35.1-150600.3.3.1 | [SUSE-SU-2024:3719-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3719-1.md) | Oct 18, 2024 |
| Linux | starlette Debian 12.15 (bookworm) | 0.26.1-1+deb12u1 | [DEBIAN-CVE-2024-47874](https://patchblox.com/security/data/fix/linux/debian-cve-2024-47874.md) | Oct 15, 2024 |
| Linux | starlette Debian 13.5 (trixie) | 0.41.0-1 | [DEBIAN-CVE-2024-47874](https://patchblox.com/security/data/fix/linux/debian-cve-2024-47874.md) | Oct 15, 2024 |
| Linux | starlette Debian 14 | 0.41.0-1 | [DEBIAN-CVE-2024-47874](https://patchblox.com/security/data/fix/linux/debian-cve-2024-47874.md) | Oct 15, 2024 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
