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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2025-07-2120:15CVE publishedNVD
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.47 | < 0.47.2 | 0.47.2 | OSV |
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 starletteAffected
- = < 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
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
Fix
- Update starlette to 0.47.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.
- 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
- CISA-ADP (SSVC)PoC stated2025-07-22
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- 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
- CGA-22x6-jcfm-h6pgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-23h4-p8m7-7mrvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2796-gxwj-hq6rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2w6q-m2f4-g793same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3gcw-939v-gx32same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3gv2-jfg7-4vh6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3p2r-gf8r-x4v8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4jwm-mx58-h8fmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-564h-x729-p35gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-67p3-r86x-54f9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-6wvx-8jfg-x3hjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-82h7-v4gg-vvhxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-898f-jh8j-v47rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8g57-w3jg-67pvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8g5h-g42w-5c3wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-94p5-h6vx-fx92same flawChainguard · CC-BY-NC-ND-4.0
- CGA-94ph-2778-ccggsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-96qf-prjr-ff74same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9mvx-jg99-5vm3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-c3vf-grg2-r3f4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-c4p4-5hrc-pwmcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cm7x-78xf-4wxgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f28p-x485-fcqrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f43j-r7vg-pwc6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f467-3r8w-pxxmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-fcqx-43hp-9pqwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-ffc6-98xm-fww3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-fg47-rvr6-r249same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gjp3-4q64-hcq3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gm64-v95v-j8rcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gw86-488g-x8cfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hfp8-vwqq-mmx8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-hm6r-mgv4-29gpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jc72-j4h7-wf68same flawChainguard · CC-BY-NC-ND-4.0
- CGA-jmmh-rr85-7p5psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jw3h-fw3v-xpw9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-m7c3-mc27-mx3gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-m7wc-r97m-qjwmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-p9cv-rh7c-r6pvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qxwg-jh5m-mch9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-r89v-g562-vhj3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-v827-2j8j-hvjxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-vv46-fhj3-jwgpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-wffg-3r26-r95gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-x9v3-x59f-8572same flawChainguard · CC-BY-NC-ND-4.0
- CGA-xfr7-9jjr-w754same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-22159same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-2c2j-9gv5-cj73same flawGitHub Advisory Database · CC-BY-4.0
- MINI-mfg9-9m76-wmxhsame flawMinimOS · LicenseRef-unstated
- PYSEC-2026-1941same flawPyPA Advisory Database · CC-BY-4.0
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?
Is CVE-2025-54121 actively exploited?
What is the CVSS score for CVE-2025-54121?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-48710KEVsame product
- CVE-2024-45337same product
- CVE-2023-29159same product
- CVE-2026-39821same product
- CVE-2024-12797same product
- CVE-2024-34156same product
- CVE-2025-47273same productsetuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
- CVE-2023-30798same product
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-2c2j-9gv5-cj73
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0