CVE-2025-62727
HIGH7.5EPSS 0.09%Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
發布日:2025/10/28修改日:2026/5/22
描述
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.
受影響套件(2)
- Debian/starlettefrom 0, < 0.46.1-3+deb13u1
- PyPI/starlette>= 0.39.0, < 0.49.1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
參考連結(7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-62727
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-62727
- PATCHhttps://github.com/Kludex/starlette
- WEBhttps://github.com/Kludex/starlette/commit/4ea6e22b489ec388d6004cfbca52dd5b147127c5
- WEBhttps://github.com/Kludex/starlette/commit/69ed26a85956ef4bd0161807eb27abf49be7cd3c
- WEBhttps://github.com/Kludex/starlette/releases/tag/0.49.1
- WEBhttps://github.com/Kludex/starlette/security/advisories/GHSA-7f5h-v6xp-fcq8