Skip to content
OpenAdvisories

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 starlette 0.46.1-3 —
Debian 13 starlette 0.46.1-3 —
Debian 12 starlette 0.26.1-1+deb12u1 —
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
PyPI starlette < 0.47.2 0.47.2 GHSA-2c2j-9gv5-cj73

Advisories 5

References