CVE-2025-54121: Starlette has possible denial-of-service vector when parsing large files in multipart forms
Vulnerability summary
CVE-2025-54121 is a medium (CVSS 5.3) vulnerability in encode starlette. EPSS estimates a 0.66% chance of exploitation in the next 30 days, higher than 52.9% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 7Timeline
- 21-07-2025PublishedVulnerability first disclosed.
- 22-07-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.66%
Chance of exploitation in the next 30 days
Percentile
53%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.66% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard24 products
- airflow-3< 3.0.3-r3
- airflow-3-bitnami-compat< 3.0.3-r3
- airflow-3-compat< 3.0.3-r3
- airflow-3-iamguarded-compat< 3.0.3-r3
- airflow-core-3< 3.0.3-r2
Wolfi20 products
- airflow-3< 3.0.3-r3
- airflow-3-bitnami-compat< 3.0.3-r3
- airflow-3-compat< 3.0.3-r3
- airflow-3-iamguarded-compat< 3.0.3-r3
- k8s-sidecar< 1.31.0-r1
Opensuse2 products
- python-starlette&distro=openSUSE Leap 15.6< 0.35.1-150600.3.6.1
- python-starlette&distro=openSUSE Tumbleweed< 0.47.2-1.1
Debian1 product
- starlette< 0.26.1-1+deb12u1 | < 0.46.1-3
Encode1 product
- starlette< 0.47.2
PyPI1 product
- starlette< 0.47.2
Ubuntu1 product
- starletteAll versions (No fix recorded)
7 vendors · 50 products
References
15 links- github.com/encode/starlette/security/advisories/GHSA-2c2j-9gv5-cj73X Refsource CONFIRMWEBREPORTAdvisory
- github.com/encode/starlette/commit/9f7ec2eb512fcc3fe90b43cb9dd9e1d08696bec1X Refsource MISCWEBFIXREPORT
- github.com/encode/starlettePACKAGE
- pypi.org/project/starlettePACKAGE