Skip to main content
Public proof of conceptFix available

CVE-2025-54121

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

A public proof of concept exists; no exploitation attested.

  • Published2025-07-21
  • Fixed in0.47.2
  • WeaknessCWE-770

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-07-2120:15CVE publishedNVD

Versions per branch

OSV
starlette
BranchAffectedFixed in
0.47< 0.47.20.47.2

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • encode starlette
    Affected
    • = < 0.47.2no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2025-07-21

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • airflow-3Wolfiall versions · fixed in 3.0.3-r3and 3 other packages
  • airflow-3Chainguardall versions · fixed in 3.0.3-r3and 3 other packages
  • airflow-core-3Chainguardall versions · fixed in 3.0.3-r2and 2 other packages
  • k8s-sidecarWolfiall versions · fixed in 1.31.0-r1
  • k8s-sidecarMinimOSall versions · fixed in 2.1.2-r0
  • k8s-sidecarChainguardall versions · fixed in 1.31.0-r1
  • kserveWolfiall versions · fixed in 0.16.0-r5and 9 other packages
  • kserveChainguardall versions · fixed in 0.16.0-r5and 9 other packages

50 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-54121 Red Hat Product Security95 known affected

    starlette: Starlette denial-of-service

    openshift-lightspeed/lightspeed-service-api-rhel9 as a component of OpenShift Lightspeed · rhaiis/vllm-cuda-rhel9 as a component of Red Hat AI Inference Server · rhaiis/vllm-rocm-rhel9 as a component of Red Hat AI Inference Server · +92 more

Full record on NVD

Fix

  1. Update starlette to 0.47.2
  2. Workaround from the vendor Red Hat Product Security CVE-2025-54121 · 95 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  3. No fix available, says the vendor Red Hat Product Security CVE-2025-54121 · 95 productsFix deferred

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionpoc2025-07-22
  • CNACVSS 3.15.3known since 2026-10-23
  • CNAweakness (CWE)CWE-770known since 2026-10-23
  • FIRST EPSSEPSS score0.7 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2025-07-21

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
2025-07-21
Last modified
2026-06-17
NVD status
Deferred
GitHub advisory
GHSA-2c2j-9gv5-cj73

Frequently asked questions

What is CVE-2025-54121?

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.

Is CVE-2025-54121 actively exploited?

A proof-of-concept exploit exists for CVE-2025-54121, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-54121?

CVE-2025-54121 has a CVSS v3 base score of 5.3 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.

Running starlette? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record