CVE-2025-62727
Python vulnerability analysis and mitigation

Overview

CVE-2025-62727 is a denial-of-service vulnerability affecting Starlette, a lightweight ASGI framework. The vulnerability was discovered and disclosed on October 28, 2025, impacting Starlette versions up to and including 0.49.0. The issue affects multiple products including Red Hat OpenShift, Red Hat AI Inference Server, Red Hat Ansible Automation Platform, and Red Hat Enterprise Linux AI (Red Hat Advisory).

Technical details

The vulnerability exists in Starlette's FileResponse Range parsing/merging logic, where an unauthenticated attacker can trigger quadratic-time processing through a crafted HTTP Range header. The issue stems from an O(n^2) algorithm used in the FileResponse.parserange_header() method. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, and is categorized under CWE-407 (Inefficient Algorithmic Complexity) (GitHub Advisory).

Impact

The vulnerability can lead to CPU exhaustion per request, causing denial-of-service for endpoints serving files. This affects any Starlette application that uses StaticFiles or direct FileResponse responses. The impact extends to frameworks built on Starlette, such as FastAPI, when using file-serving endpoints (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Starlette version 0.49.1. Users are advised to upgrade to this version or later to mitigate the risk (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61385CRITICAL9.6
  • PythonPython
  • pg8000
NoYesOct 27, 2025
CVE-2025-62727HIGH7.5
  • PythonPython
  • starlette
NoYesOct 28, 2025
CVE-2025-8709HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesOct 26, 2025
CVE-2025-62708MEDIUM6.6
  • PythonPython
  • nemo
NoYesOct 22, 2025
CVE-2025-40843MEDIUM5.9
  • PythonPython
  • codechecker
NoYesOct 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management