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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/Kludex/starlette/security/advisories/GHSA-7f5h-v6xp-fcq8 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/Kludex/starlette/commit/4ea6e22b489ec388d6004cfbca52dd5b147127c5 patch
- https://github.com/Kludex/starlette/commit/69ed26a85956ef4bd0161807eb27abf49be7cd3c introduced-commit patch
- github.com product
- https://github.com/Kludex/starlette/releases/tag/0.49.1
- pypi.org product
- github.com vendor-advisory
- Debian Security Tracker CVE-2025-62727 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking