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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-0187

CVE-2025-0187: Gradio File Upload DoS Vulnerability

CVE-2025-0187 is a denial of service vulnerability in Gradio's file upload feature that allows attackers to overwhelm servers with large filenames. This article covers technical details, affected versions, and mitigations.

Updated: May 19, 2026

CVE-2025-0187 Overview

CVE-2025-0187 is a Denial of Service (DoS) vulnerability in the file upload feature of gradio-app/gradio version 0.39.1. The flaw stems from improper handling of form-data containing an excessively large filename in file upload requests. Attackers can send a crafted multipart request with an oversized filename field, causing the server to consume resources processing the input. The result is server unresponsiveness and unavailability for legitimate users. Gradio is widely used to expose machine learning models through interactive web interfaces, making this vulnerability relevant to AI/ML deployments. The weakness is classified under [CWE-400: Uncontrolled Resource Consumption].

Critical Impact

Unauthenticated remote attackers can render Gradio applications unresponsive by sending a single crafted file upload request with an oversized filename.

Affected Products

  • gradio-app/gradio version 0.39.1 (Python package)
  • Applications exposing the Gradio file upload component
  • Machine learning demos and interfaces built on the affected Gradio release

Discovery Timeline

  • 2025-03-20 - CVE-2025-0187 published to the National Vulnerability Database (NVD)
  • 2025-08-01 - Last updated in NVD database

Technical Details for CVE-2025-0187

Vulnerability Analysis

The vulnerability resides in the multipart form-data parsing logic that handles file uploads in Gradio 0.39.1. When a client submits a file upload request, the server reads the filename parameter from the Content-Disposition header. The implementation does not enforce a maximum length on this field before processing. An attacker can supply a filename containing millions of characters, forcing the server to allocate memory and perform string operations against the oversized input. This causes thread blocking and exhausts available worker capacity. Because the Gradio server is typically single-process and serves both the UI and inference endpoints, a single malicious request can disrupt all clients connected to the application.

Root Cause

The root cause is missing input validation on the filename field of multipart upload requests. Gradio accepts arbitrarily large filename strings without enforcing length bounds, byte limits, or early request termination. This violates secure input handling practices for HTTP-facing services and maps directly to [CWE-400] uncontrolled resource consumption.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker only needs reachability to the Gradio HTTP endpoint exposing the file upload route. The exploit consists of issuing a standard HTTP POST request with multipart/form-data content type, where the filename attribute in the Content-Disposition header carries an oversized string payload. Repeated requests amplify the impact and can keep the service offline indefinitely.

No verified exploit code has been published for CVE-2025-0187. Technical details are available in the Huntr Bug Bounty Report.

Detection Methods for CVE-2025-0187

Indicators of Compromise

  • HTTP POST requests to Gradio upload endpoints containing Content-Disposition headers with abnormally long filename values (tens of thousands of characters or more).
  • Sudden spikes in memory consumption or worker thread saturation on the Gradio process coinciding with inbound upload traffic.
  • Application logs showing dropped or timed-out requests immediately following large multipart submissions.

Detection Strategies

  • Inspect web server and reverse proxy access logs for multipart upload requests exceeding expected header sizes.
  • Deploy Web Application Firewall (WAF) rules that enforce maximum length on the filename attribute of multipart requests.
  • Correlate process resource metrics with HTTP request telemetry to identify single requests that trigger disproportionate CPU or memory usage.

Monitoring Recommendations

  • Alert on Gradio process unresponsiveness or restarts following abnormal HTTP request patterns.
  • Track 4xx and 5xx response rates on upload endpoints as a signal of attempted exploitation.
  • Capture full HTTP request headers for forensic review when DoS conditions are detected.

How to Mitigate CVE-2025-0187

Immediate Actions Required

  • Upgrade gradio to a version newer than 0.39.1 that addresses the filename handling defect.
  • Restrict network exposure of Gradio applications to trusted users via authentication, VPN, or IP allowlists.
  • Place Gradio behind a reverse proxy (such as nginx) configured with strict request size and header length limits.

Patch Information

Review the Huntr Bug Bounty Report for remediation guidance and consult the official gradio-app/gradio release notes for the fixed version. Upgrade using pip install --upgrade gradio in affected environments.

Workarounds

  • Configure an upstream reverse proxy to reject multipart requests with Content-Disposition headers exceeding a safe length (for example, 1024 bytes).
  • Apply rate limiting on the file upload endpoint to reduce the impact of repeated malicious requests.
  • Disable the file upload component in Gradio applications that do not require it.
bash
# Example nginx configuration to limit request header and body size
http {
    client_max_body_size 10m;
    large_client_header_buffers 4 8k;
    client_header_buffer_size 1k;

    server {
        location /upload {
            limit_req zone=upload_limit burst=5 nodelay;
            proxy_pass http://gradio_backend;
        }
    }
}

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechGradio

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.75%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • Huntr Bug Bounty Report
  • Related CVEs
  • CVE-2025-48889: Gradio File Copy DoS Vulnerability

  • CVE-2026-27167: Gradio Information Disclosure Vulnerability

  • CVE-2026-28414: Gradio Path Traversal Vulnerability

  • CVE-2026-28415: Gradio OAuth CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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