Skip to main content
VulnerabilityPublished Updated

CVE-2025-54121: Fastapi · Starlette has possible denial-of-service vector when parsing large files in multipart forms

Affects fastapiSource GCVE Database

0
Compare
Authoritative record:CVE-2025-54121· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium : upgrade to 0.116.1_1 when convenient.

Data as of 9 Nov 2026, 20:03 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.116.1_1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 9 Nov 2026.

What to do

Upgrade fastapi to 0.116.1_1.

Affected software

ProductAffectedFixed in
Homebrewfastapipkg:brew/fastapiOther threatsAffected
  • >=0.111.0 <0.116.1_1
Fixed in
  • 0.116.1_1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available and should be applied by upgrading Starlette to version 0.116.1_1 or later. No additional mitigations are required as the fix addresses the root cause.

Description

CVE-2025-54121 is a denial-of-service vulnerability in Starlette, a component used by FastAPI, triggered when parsing multipart forms with large files exceeding the default max spool size. The issue causes the main event thread to block while rolling the file over to disk, preventing new connections from being accepted. The impact is considered low to medium, as the blocking mainly affects systems with slower disk I/O. A fix is available in Starlette version 0.116.1_1.

References

Community reviews

Loading reviews…