CVE-2025-62727: Kludex starlette · Inefficient Algorithmic Complexity
Affects Kludex starletteSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 0.49.1 soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.49.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 28 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade Kludex starlette to 0.49.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIstarlettepkg:pypi/starletteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade all Starlette deployments to version 0.49.1 or later immediately to apply the fix that optimizes Range header processing and eliminates the quadratic-time complexity. 2. Implement strict rate limiting on HTTP requests targeting file-serving endpoints to reduce the risk of CPU exhaustion from malicious Range headers. 3. Monitor web server and application logs for abnormal or excessive Range header usage patterns indicative of exploitation attempts. 4. Use Web Application Firewalls (WAFs) or reverse proxies capable of detecting and blocking suspicious Range headers or malformed requests. 5. Conduct regular security audits and penetration testing focused on file-serving endpoints to identify potential exploitation vectors. 6. Consider disabling support for HTTP Range headers on endpoints where partial content delivery is not required. 7. Educate development and operations teams about this vulnerability and ensure patch management processes prioritize such high-severity issues. 8. In environments where immediate upgrade is not feasible, deploy mitigations such as CPU usage limits per request or container resource constraints to limit impact.
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.
References
- github.com/Kludex/starlette/security/advisories/GHSA-7f5h-v6xp-fcq8 (opens in a new tab)
- github.com/Kludex/starlette/commit/4ea6e22b489ec388d6004cfbca52dd5b147127c5 (opens in a new tab)
- github.com/Kludex/starlette/commit/69ed26a85956ef4bd0161807eb27abf49be7cd3c (opens in a new tab)
- github.com/Kludex/starlette/releases/tag/0.49.1 (opens in a new tab)