PT-2024-7391

CVE-2024-47874

·

Published

2024-10-04

·

Updated

2026-09-14

Description by

CVSS 4.0
8.7
High
MetricsAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions: Starlette versions prior to 0.40.0
Description: The issue is related to how Starlette handles multipart/form-data parts without a filename, treating them as text form fields and buffering them in byte strings with no size limit. This allows an attacker to upload arbitrary large form fields, causing Starlette to slow down significantly due to excessive memory allocations and copy operations, and 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. This Denial of service (DoS) vulnerability affects all applications built with Starlette (or FastAPI) accepting form requests.
Recommendations: For versions prior to 0.40.0, update to version 0.40.0 to fix the issue. As a temporary workaround, consider restricting the size of form fields or disabling the handling of multipart/form-data parts without a filename to minimize the risk of exploitation. Avoid using the multipart/form-data endpoint with untrusted input until the issue is resolved.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-F96H-PMFR-66VW
GHSA-W466-2WFC-8G58
ECHO-C30A-DB4D-34BF
OPENSUSE-SU-2024:14417-1
OPENSUSE-SU-2024_3719-1
OPENSUSE-SU-2026:11626-1
PYSEC-2026-1943
SUSE-SU-2024:3719-1
Found an issue in the description? Have something to add? Feel free to write us 👾