Vulnerability
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.
55 advisories report this vulnerability, across 7 ecosystems.
Advisories
- CGA-22x6-jcfm-h6pg
- CGA-23h4-p8m7-7mrv
- CGA-2796-gxwj-hq6r
- CGA-2w6q-m2f4-g793
- CGA-3gcw-939v-gx32
- CGA-3gv2-jfg7-4vh6
- 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-9mvx-jg99-5vm3
- CGA-c3vf-grg2-r3f4
- 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-gw86-488g-x8cf
- 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-m7wc-r97m-qjwm
- 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
- CGA-xfr7-9jjr-w754
-
DEBIAN-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…
-
GHSA-2c2j-9gv5-cj73
Starlette has possible denial-of-service vector when parsing large files in multipart forms
-
PYSEC-2026-1941
Starlette has possible denial-of-service vector when parsing large files in multipart forms
-
SUSE-SU-2025:02544-1
Security update for python-starlette
-
SUSE-SU-2026:22151-1
Security update for python-starlette
-
SUSEVEX-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…
-
UBUNTU-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…
-
openSUSE-SU-2025:15381-1
python311-starlette-0.47.2-1.1 on GA media
-
openSUSE-SU-2026:20975-1
Security update for python-starlette
References
- https://github.com/encode/starlette/blob/fa5355442753f794965ae1af0f87f9fec1b9a3de/starlette/datastructures.py#L436C5-L447C14
- https://github.com/encode/starlette/commit/9f7ec2eb512fcc3fe90b43cb9dd9e1d08696bec1
- https://github.com/encode/starlette/discussions/2927#discussioncomment-13721403
- https://github.com/encode/starlette/security/advisories/GHSA-2c2j-9gv5-cj73