Bug 2318801 (CVE-2024-47874) - CVE-2024-47874 starlette: Starlette Denial of service (DoS) via multipart/form-data
Summary: CVE-2024-47874 starlette: Starlette Denial of service (DoS) via multipart/for...
Keywords:
Status: NEW
Alias: CVE-2024-47874
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2318804
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-15 16:02 UTC by OSIDB Bzimport
Modified: 2025-06-01 08:27 UTC (History)
21 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-15 16:02:33 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.