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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-28T20:14:53.655Z
- Modified: 2026-10-08T11:10:00.250Z
- Also known as: GHSA-7f5h-v6xp-fcq8, PYSEC-2026-1942
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Kludex starlette: >= 0.39.0, < 0.49.1
- starlette (PyPI): from 0.39.0 before 0.49.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `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> (exploit, web)
- <https://github.com/Kludex/starlette/commit/4ea6e22b489ec388d6004cfbca52dd5b147127c5> (fix, web)
- <https://github.com/Kludex/starlette/commit/69ed26a85956ef4bd0161807eb27abf49be7cd3c> (introduced, web)
- <https://github.com/Kludex/starlette/releases/tag/0.49.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62727> (advisory)
- <https://github.com/Kludex/starlette> (package)
- <https://pypi.org/project/starlette> (package)
- <https://github.com/advisories/GHSA-7f5h-v6xp-fcq8> (advisory)

## Sources

- CVE List: [CVE-2025-62727](https://www.cve.org/CVERecord?id=CVE-2025-62727), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-7f5h-v6xp-fcq8](https://github.com/advisories/GHSA-7f5h-v6xp-fcq8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-62727](https://nvd.nist.gov/vuln/detail/CVE-2025-62727), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2026-1942](https://osv.dev/vulnerability/PYSEC-2026-1942), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-62727 · Whole record: https://cve.day/CVE-2025-62727.json · Rebuilt by cve.day 2026-11-25T22:59:06.971Z
