The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-62727

CVE-2025-62727: Starlette ASGI Framework DoS Vulnerability

CVE-2025-62727 is a denial-of-service flaw in Starlette ASGI framework caused by quadratic-time processing in HTTP Range header parsing. Attackers can exhaust CPU resources with crafted requests. This article covers technical details, affected versions, impact, and mitigation steps.

Published: April 1, 2026

CVE-2025-62727 Overview

Starlette is a lightweight ASGI framework/toolkit widely used for building high-performance Python web applications. A denial-of-service vulnerability exists in Starlette versions 0.39.0 through 0.49.0 that allows an unauthenticated attacker to send a crafted HTTP Range header that triggers quadratic-time processing in the FileResponse Range parsing and merging logic. This enables CPU exhaustion per request, causing denial-of-service for endpoints serving files such as StaticFiles or any use of FileResponse.

Critical Impact

Unauthenticated attackers can exhaust server CPU resources through malicious HTTP Range headers, causing denial-of-service for file-serving endpoints without requiring authentication.

Affected Products

  • Starlette versions >= 0.39.0 and < 0.49.1
  • Applications using Starlette's FileResponse class
  • Applications using Starlette's StaticFiles middleware

Discovery Timeline

  • 2025-10-28 - CVE-2025-62727 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2025-62727

Vulnerability Analysis

This vulnerability is classified as CWE-407 (Inefficient Algorithmic Complexity), representing an algorithmic complexity attack that leads to CPU exhaustion. The flaw resides in how Starlette's FileResponse class processes HTTP Range headers when serving files.

When a client requests partial content from a file-serving endpoint using the Range header, Starlette parses and merges the specified byte ranges. The vulnerable implementation uses an algorithm with quadratic time complexity (O(n²)), meaning processing time increases exponentially with the number of ranges specified. An attacker can craft a Range header with numerous overlapping or complex range specifications that cause the server to spend excessive CPU cycles on parsing and merging operations.

This attack requires no authentication and can be launched remotely over the network. The impact is limited to availability—there is no data confidentiality or integrity breach—but the ability to exhaust CPU resources makes this a significant denial-of-service vector for any Starlette application serving static files.

Root Cause

The root cause lies in the inefficient algorithmic implementation of the Range header parsing and merging logic in Starlette's responses.py module. The original implementation used regular expression-based parsing that exhibited quadratic time complexity when processing headers containing many range specifications. The patch removes the inefficient regex-based approach in favor of a more efficient parsing mechanism.

Attack Vector

The attack is network-based and requires no authentication, privileges, or user interaction. An attacker simply sends HTTP requests with specially crafted Range headers to any endpoint that serves files using Starlette's FileResponse or StaticFiles. By including a large number of range specifications in a single header, the attacker forces the server to perform excessive computation, consuming CPU resources and potentially rendering the service unavailable for legitimate users.

python
# Patch removes inefficient regex-based Range parsing (from responses.py)
# Before: Used regex for parsing
 import http.cookies
 import json
 import os
-import re
 import stat
 import sys
 import warnings

Source: GitHub Commit

Detection Methods for CVE-2025-62727

Indicators of Compromise

  • Unusually high CPU utilization on servers running Starlette applications
  • HTTP requests containing Range headers with excessive number of byte range specifications
  • Elevated response times for file-serving endpoints without corresponding increase in legitimate traffic
  • Server logs showing repeated requests to static file endpoints from single sources

Detection Strategies

  • Monitor for HTTP requests with abnormally long or complex Range headers targeting file-serving endpoints
  • Implement rate limiting on static file endpoints to identify potential abuse patterns
  • Configure web application firewalls (WAF) to detect and block Range headers exceeding normal complexity thresholds
  • Analyze server performance metrics for CPU spikes correlated with requests to static file endpoints

Monitoring Recommendations

  • Set up alerting for CPU utilization anomalies on Starlette application servers
  • Log and analyze Range header contents for requests to FileResponse and StaticFiles endpoints
  • Monitor request latency metrics for file-serving endpoints to detect degradation patterns
  • Implement connection tracking to identify sources sending excessive requests with complex Range headers

How to Mitigate CVE-2025-62727

Immediate Actions Required

  • Upgrade Starlette to version 0.49.1 or later immediately
  • Audit applications to identify all uses of FileResponse and StaticFiles components
  • Implement network-level rate limiting for static file endpoints as a temporary protection measure
  • Review web server and reverse proxy configurations to add Range header complexity limits

Patch Information

The vulnerability has been fixed in Starlette version 0.49.1. The patch addresses the inefficient algorithmic complexity in the Range header parsing logic by removing the regex-based approach that caused quadratic-time processing.

Relevant resources:

  • Starlette Release 0.49.1
  • Security Advisory GHSA-7f5h-v6xp-fcq8
  • Security Patch Commit

Workarounds

  • Deploy a reverse proxy (nginx, Apache, Caddy) in front of Starlette applications configured to reject or limit complex Range headers
  • Implement middleware to validate and sanitize Range headers before they reach FileResponse processing
  • Temporarily disable Range header support for static file endpoints if partial content delivery is not required
  • Use CDN or separate static file serving infrastructure that is not affected by this vulnerability
bash
# Example nginx configuration to limit Range header abuse
# Add to your server block configuration
location /static/ {
    # Limit the size of Range header
    if ($http_range ~* "bytes=.{500,}") {
        return 416;
    }
    proxy_pass http://starlette_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechStarlette

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.45%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-407
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Release 0.49.1

  • GitHub Security Advisory GHSA-7f5h-v6xp-fcq8
  • Related CVEs
  • CVE-2025-54121: Starlette ASGI Framework DoS Vulnerability

  • CVE-2024-47874: Starlette ASGI Framework DoS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English