starlette · In versions 0.47.1 and below, when parsing a multi-part form with large files (greater than the default max spool
Affects starletteSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium · fixed in 0.47.2 : update starlette when convenient.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.47.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 21 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10starlettepkg:deb/ubuntu/starlette?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSstarlettepkg:deb/ubuntu/starlette?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10starlettepkg:deb/ubuntu/starlette?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSstarlettepkg:deb/ubuntu/starlette?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSstarlettepkg:deb/ubuntu/starlette?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2025-54121 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-54121 (opens in a new tab)
- github.com/encode/starlette/security/advisories/GHSA-2c2j-9gv5-cj73 (opens in a new tab)
- github.com/encode/starlette/discussions/2927 (opens in a new tab)
- github.com/encode/starlette/blob/fa5355442753f794965ae1af0f87f9fec1b9a3de/starlette/datastructures.py (opens in a new tab)
- github.com/encode/starlette/commit/9f7ec2eb512fcc3fe90b43cb9dd9e1d08696bec1 (opens in a new tab)