CVE-2025-54121
published medium CVSS 3.1 · 5.3Starlette has possible denial-of-service vector when parsing large files in multipart forms
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| encode | — | starlette< 0.47.2 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | SLE-16 | python313-starlettenoarch | Advisory build | 0.41.3-160000.3.1 | SUSE-SU-2026:22151-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-starlettenoarch | Advisory build | 0.35.1-150600.3.6.1 | SUSE-SU-2025:02544-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-starlettenoarch | Advisory build | 0.41.3-160000.3.1 | OPENSUSE-SU-2026:20975-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-starletteaarch64 | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-starletteppc64le | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-starlettes390x | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-starlettex86_64 | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-starletteaarch64 | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-starletteppc64le | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-starlettes390x | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-starlettex86_64 | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-starletteaarch64 | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-starletteppc64le | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-starlettes390x | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-starlettex86_64 | Advisory build | 0.47.2-1.1 | OPENSUSE-SU-2025:15381-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| encode | starlette | < 0.47.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
4- 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
Provider assertions
2GitHub_M · cna
Starlette has possible denial-of-service vector when parsing large files in multipart forms
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1ea435ebf0f619dbf5db92746887a41c80298bfa9aecb78ccc4fa9ddb434c7eb
- Ingested
- 23 Sep 2026, 08:53:04 UTC
- Source record
- Official CVE record