Skip to main content
← All vulnerabilities
CVE-2025-54121PYSEC-2026-1941GHSA-2C2J-9GV5-CJ73

Starlette has possible denial-of-service vector when parsing large files in multipart forms

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.47.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, designed for building async web services in Python. In versions 0.47.1 and below, when parsing a multi-part form with large files (greater than the default max spool size) starlette will block the main thread to roll the file over to disk. This blocks the event thread which means the application can't accept new connections. The UploadFile code has a minor bug where instead of just checking for self._in_memory, the logic should also check if the additional bytes will cause a rollover. The vulnerability is fixed in version 0.47.2.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • encode starlette

    fixed in 0.47.2

  • starlettePyPI

    fixed in 0.47.2

References 4

GitHub · encode/starlette