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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| encode | starlette | < 0.47.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | starlette | 0.46.1-3 | — |
| Debian 13 | starlette | 0.46.1-3 | — |
| Debian 12 | starlette | 0.26.1-1+deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | starlette | No fix yet | — |
| Ubuntu 26.04 LTS | starlette | No fix yet | — |
| Ubuntu 25.10 | starlette | No fix yet | — |
| Ubuntu 24.04 LTS | starlette | No fix yet | — |
| Ubuntu 22.04 LTS | starlette | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python-starlette | 0.41.3-160000.3.1 | SUSE-SU-2026:22151-1 |
| SLES 16.0 | python-starlette | 0.41.3-160000.3.1 | SUSE-SU-2026:22151-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-starlette | 0.47.2-1.1 | openSUSE-SU-2025:15381-1 |
| openSUSE Leap 16.0 | python-starlette | 0.41.3-160000.3.1 | openSUSE-SU-2026:20975-1 |
| openSUSE Leap 15.6 | python-starlette | 0.35.1-150600.3.6.1 | SUSE-SU-2025:02544-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | airflow-3 +3 | 3.0.3-r3 | — |
| Wolfi rolling | k8s-sidecar | 1.31.0-r1 | — |
| Wolfi rolling | kserve +9 | 0.16.0-r5 | — |
| Wolfi rolling | open-webui +1 | 0.6.18-r1 | — |
| Wolfi rolling | reflex | 0.8.3-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | starlette | < 0.47.2 | 0.47.2 | GHSA-2c2j-9gv5-cj73 |
Advisories 5
- openSUSE-SU-2026:20975-1 Security update for python-starlette SUSE / openSUSE Security Updates · Jun 24, 2026
- SUSE-SU-2026:22151-1 Security update for python-starlette SUSE / openSUSE Security Updates · Jun 24, 2026
- SUSE-SU-2025:02544-1 Security update for python-starlette SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15381-1 python311-starlette-0.47.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-2534 IBM Business Automation Workflow: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 26, 2025
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