Vulnerability · Published Oct 28, 2025 · Assigned by GitHub_M
CVE-2025-62727Starlette vulnerable to O(n^2) DoS via Range header merging in starlette.responses.FileResponse
High 7.5
In plain English
A high-severity security flaw in starlette from Kludex. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | starlette | 0.46.1-3+deb13u1 | DEBIAN-CVE-2025-62727 |
| Debian:14 | starlette | 0.50.0-1 | DEBIAN-CVE-2025-62727 |
| PyPI | starlette | 0.49.1 | GHSA-7f5h-v6xp-fcq8 |
| PyPI | starlette | 0.49.1 | PYSEC-2026-1942 |
| Ubuntu:22.04:LTS | starlette | no fix listed | UBUNTU-CVE-2025-62727 |
| Ubuntu:24.04:LTS | starlette | no fix listed | UBUNTU-CVE-2025-62727 |
| Ubuntu:25.10 | starlette | no fix listed | UBUNTU-CVE-2025-62727 |
| Ubuntu:26.04:LTS | starlette | no fix listed | UBUNTU-CVE-2025-62727 |
| Ubuntu:26.10 | starlette | no fix listed | UBUNTU-CVE-2025-62727 |
Affected products (as reported)
Weakness: CWE-407 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/Kludex/starlette/security/advisories/GHSA-7f5h-v6xp-fcq8 x_refsource_CONFIRM
- https://github.com/Kludex/starlette/commit/4ea6e22b489ec388d6004cfbca52dd5b147127c5 x_refsource_MISC
- https://github.com/Kludex/starlette/commit/69ed26a85956ef4bd0161807eb27abf49be7cd3c x_refsource_MISC
- https://github.com/Kludex/starlette/releases/tag/0.49.1 x_refsource_MISC