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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-21 · Modified: 2025-07-22
- Aliases: GHSA-2c2j-9gv5-cj73, PYSEC-2026-1941, UBUNTU-CVE-2025-54121, DEBIAN-CVE-2025-54121, CGA-23h4-p8m7-7mrv, CGA-2796-gxwj-hq6r, CGA-2w6q-m2f4-g793, CGA-3gcw-939v-gx32, CGA-3p2r-gf8r-x4v8, CGA-4jwm-mx58-h8fm, CGA-564h-x729-p35g, CGA-67p3-r86x-54f9, CGA-6wvx-8jfg-x3hj, CGA-82h7-v4gg-vvhx, CGA-898f-jh8j-v47r, CGA-8g57-w3jg-67pv, CGA-8g5h-g42w-5c3w, CGA-94p5-h6vx-fx92, CGA-94ph-2778-ccgg, CGA-96qf-prjr-ff74, CGA-c4p4-5hrc-pwmc, CGA-cm7x-78xf-4wxg, CGA-f28p-x485-fcqr, CGA-f43j-r7vg-pwc6, CGA-f467-3r8w-pxxm, CGA-fcqx-43hp-9pqw, CGA-ffc6-98xm-fww3, CGA-fg47-rvr6-r249, CGA-gjp3-4q64-hcq3, CGA-gm64-v95v-j8rc, CGA-hfp8-vwqq-mmx8, CGA-hm6r-mgv4-29gp, CGA-jc72-j4h7-wf68, CGA-jmmh-rr85-7p5p, CGA-jw3h-fw3v-xpw9, CGA-m7c3-mc27-mx3g, CGA-p9cv-rh7c-r6pv, CGA-qxwg-jh5m-mch9, CGA-r89v-g562-vhj3, CGA-v827-2j8j-hvjx, CGA-vv46-fhj3-jwgp, CGA-wffg-3r26-r95g, CGA-x9v3-x59f-8572, SUSE-SU-2025:02544-1, openSUSE-SU-2025:15381-1, CGA-22x6-jcfm-h6pg, CGA-3gv2-jfg7-4vh6, CGA-9mvx-jg99-5vm3, CGA-c3vf-grg2-r3f4, CGA-gw86-488g-x8cf, CGA-m7wc-r97m-qjwm, CGA-xfr7-9jjr-w754
- Record: https://cvemate.com/vulnerability/CVE-2025-54121 · JSON: https://cvemate.com/vulnerability/CVE-2025-54121/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.66%, percentile 52.964%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 50)

- chainguard airflow-3 (Chainguard): \< 3.0.3-r3
- chainguard airflow-3-bitnami-compat (Chainguard): \< 3.0.3-r3
- chainguard airflow-3-compat (Chainguard): \< 3.0.3-r3
- chainguard airflow-3-iamguarded-compat (Chainguard): \< 3.0.3-r3
- chainguard airflow-core-3 (Chainguard): \< 3.0.3-r2
- chainguard airflow-core-3-compat (Chainguard): \< 3.0.3-r2
- chainguard airflow-core-3-oci-entrypoint (Chainguard): \< 3.0.3-r2
- chainguard k8s-sidecar (Chainguard): \< 1.31.0-r1
- chainguard kserve (Chainguard): \< 0.16.0-r5
- chainguard kserve-agent (Chainguard): \< 0.16.0-r5
- chainguard kserve-agent-compat (Chainguard): \< 0.16.0-r5
- chainguard kserve-manager (Chainguard): \< 0.16.0-r5
- chainguard kserve-manager-compat (Chainguard): \< 0.16.0-r5
- chainguard kserve-qpext (Chainguard): \< 0.16.0-r5
- chainguard kserve-qpext-compat (Chainguard): \< 0.16.0-r5
- chainguard kserve-router (Chainguard): \< 0.16.0-r5
- chainguard kserve-router-compat (Chainguard): \< 0.16.0-r5
- chainguard kserve-storage-controller (Chainguard): \< 0.16.0-r5
- chainguard mlflow (Chainguard): \< 3.1.4-r0
- chainguard mlflow-iamguarded-compat (Chainguard): \< 3.1.4-r0

## References

- <https://github.com/encode/starlette/security/advisories/GHSA-2c2j-9gv5-cj73>
- <https://github.com/encode/starlette/commit/9f7ec2eb512fcc3fe90b43cb9dd9e1d08696bec1>
- <https://github.com/encode/starlette/blob/fa5355442753f794965ae1af0f87f9fec1b9a3de/starlette/datastructures.py#L436C5-L447C14>
- <https://github.com/encode/starlette/discussions/2927#discussioncomment-13721403>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54121>
- <https://github.com/encode/starlette>
- <https://pypi.org/project/starlette>
- <https://github.com/advisories/GHSA-2c2j-9gv5-cj73>
- <https://ubuntu.com/security/CVE-2025-54121>
- <https://www.cve.org/CVERecord?id=CVE-2025-54121>
- <https://security-tracker.debian.org/tracker/CVE-2025-54121>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54121.json>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502544-1/>
- <https://bugzilla.suse.com/1246855>
- <https://www.suse.com/security/cve/CVE-2025-54121>

---

Data as of 2026-12-05T04:44:21.698Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
