Asynchronous Framework Vulnerability in Starlette Affects File Uploads
CVE-2025-54121
5.3MEDIUM
What is CVE-2025-54121?
Starlette, an ASGI framework for building async web services in Python, has a vulnerability in its file upload handling. When processing multi-part forms with large files exceeding the default maximum spool size, it can block the main thread, preventing the acceptance of new connections. This occurs due to a flaw in the UploadFile code where it fails to adequately check if the rollover will be triggered by additional bytes. A fix is available in version 0.47.2.
Affected Version(s)
starlette < 0.47.2