Skip to content

CVE-2025-62727 Starlette vulnerable to O(n^2) DoS via Range header merging in starlette.responses.FileResponse

HighCVSS 7.5 EPSS 0.80%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebian

Description

Starlette is a lightweight ASGI framework/toolkit. Starting in version 0.39.0 and prior to version 0.49.1 , an unauthenticated attacker can send a crafted HTTP Range header that triggers quadratic-time processing in Starlette's FileResponse Range parsing/merging logic. This enables CPU exhaustion per request, causing denial‑of‑service for endpoints serving files (e.g., StaticFiles or any use of FileResponse). This vulnerability is fixed in 0.49.1.

Upgrade path

8 packages: 3 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/starlette(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/starlette(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/starlette(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/starlette(Ubuntu 26.10) All versions No fix listed No fix yet
debian/starlette(Debian 13) < 0.46.1-3+deb13u1; = 0.46.1-3 0.46.1-3+deb13u1 Fixed
debian/starlette(Debian 14) < 0.50.0-1; = 0.46.1-3 0.50.0-1 Fixed
pypi starlette(PyPI) = 0.39.0; = 0.39.1; = 0.39.2; = 0.40.0 +22 more 0.49.1 Fixed
Kludex starlette = >= 0.39.0, < 0.49.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi starlette(PyPI) >= 0.39.0, < 0.49.1 0.49.1
pypi starlette(PyPI) = 0.39.0 No fix listed
pypi starlette(PyPI) = 0.39.1 No fix listed
pypi starlette(PyPI) = 0.39.2 No fix listed
pypi starlette(PyPI) = 0.40.0 No fix listed
pypi starlette(PyPI) = 0.41.0 No fix listed
pypi starlette(PyPI) = 0.41.1 No fix listed
pypi starlette(PyPI) = 0.41.2 No fix listed
pypi starlette(PyPI) = 0.41.3 No fix listed
pypi starlette(PyPI) = 0.42.0 No fix listed
pypi starlette(PyPI) = 0.43.0 No fix listed
pypi starlette(PyPI) = 0.44.0 No fix listed
pypi starlette(PyPI) = 0.45.0 No fix listed
pypi starlette(PyPI) = 0.45.1 No fix listed
pypi starlette(PyPI) = 0.45.2 No fix listed
pypi starlette(PyPI) = 0.45.3 No fix listed
pypi starlette(PyPI) = 0.46.0 No fix listed
pypi starlette(PyPI) = 0.46.1 No fix listed
pypi starlette(PyPI) = 0.46.2 No fix listed
pypi starlette(PyPI) = 0.47.0 No fix listed
pypi starlette(PyPI) = 0.47.1 No fix listed
pypi starlette(PyPI) = 0.47.2 No fix listed
pypi starlette(PyPI) = 0.47.3 No fix listed
pypi starlette(PyPI) = 0.48.0 No fix listed
pypi starlette(PyPI) = 0.49.0 No fix listed
Show 10 more
ProductAffected versionsFixed in
debian/starlette(Debian:13) < 0.46.1-3+deb13u1 0.46.1-3+deb13u1
debian/starlette(Debian:13) = 0.46.1-3 No fix listed
debian/starlette(Debian:14) < 0.50.0-1 0.50.0-1
debian/starlette(Debian:14) = 0.46.1-3 No fix listed
pypi starlette(PyPI) >= 0.39.0, <= 0.49.0 No fix listed
Kludex starlette = >= 0.39.0, < 0.49.1 No fix listed
ubuntu/starlette(Ubuntu:22.04) All versions No fix listed
ubuntu/starlette(Ubuntu:24.04) All versions No fix listed
ubuntu/starlette(Ubuntu:26.04) All versions No fix listed
ubuntu/starlette(Ubuntu:26.10) All versions No fix listed

References