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-2024-0964

CVE-2024-0964: Gradio Path Traversal Vulnerability

CVE-2024-0964 is a path traversal vulnerability in Gradio that enables remote file inclusion through malicious JSON input in API requests. This article covers technical details, affected versions, security impact, and mitigation.

Published: April 8, 2026

CVE-2024-0964 Overview

A critical Local File Inclusion (LFI) vulnerability exists in Gradio, a popular Python library for building machine learning web applications and demos. This vulnerability allows remote attackers to trigger local file inclusion by exploiting improper validation of user-supplied JSON values in API requests. The flaw enables unauthorized access to sensitive files on the server hosting Gradio applications, potentially exposing configuration files, source code, credentials, and other confidential data.

Critical Impact

Remote attackers can exploit this vulnerability without authentication to read arbitrary files from servers hosting Gradio applications, leading to potential data theft, credential exposure, and further system compromise.

Affected Products

  • Gradio (Python package)
  • Gradio-based machine learning web applications
  • Hugging Face Spaces utilizing Gradio interfaces

Discovery Timeline

  • 2024-02-05 - CVE-2024-0964 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-0964

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Path Traversal), manifesting as a Local File Inclusion (LFI) issue in Gradio's API request handling. The vulnerability exists due to insufficient validation and sanitization of user-controlled JSON input parameters passed to API endpoints. When Gradio processes API requests, it fails to properly validate file path references embedded in JSON payloads, allowing attackers to traverse the file system and include arbitrary local files.

The attack is network-accessible and requires no authentication or user interaction, making it particularly dangerous for publicly exposed Gradio applications. Successful exploitation grants attackers read access to sensitive files and potentially limited write capabilities, severely impacting confidentiality and integrity of affected systems.

Root Cause

The root cause lies in improper input validation of user-supplied JSON values within Gradio's API handling logic. The application fails to sanitize path traversal sequences (such as ../) and does not restrict file access to intended directories. This allows malicious input to escape the intended application context and access arbitrary files on the underlying file system.

Attack Vector

Attackers can exploit this vulnerability by sending specially crafted API requests containing malicious JSON payloads to a Gradio application. The attack vector is network-based and requires no privileges or user interaction. The attacker crafts a JSON payload with path traversal sequences targeting sensitive files such as /etc/passwd, configuration files, or application secrets.

The security patch introduces improvements to the event handling and protocol mechanisms:

typescript
 
			const session_hash = Math.random().toString(36).substring(2);
			const last_status: Record<string, Status["stage"]> = {};
+			let stream_open = false;
+			let event_stream: EventSource | null = null;
+			const event_callbacks: Record<string, () => Promise<void>> = {};
			let config: Config;
			let api_map: Record<string, number> = {};

Source: GitHub Commit d76bcaa

The patch also updates the protocol type definitions to enforce stricter protocol handling:

typescript
	show_api: boolean;
	stylesheets: string[];
	path: string;
-	protocol?: "sse" | "ws";
+	protocol?: "sse_v1" | "sse" | "ws";
}

export interface Payload {

Source: GitHub Commit d76bcaa

Detection Methods for CVE-2024-0964

Indicators of Compromise

  • API requests containing path traversal sequences such as ../, ..%2f, or %2e%2e/ in JSON payloads
  • Unusual access patterns to Gradio API endpoints with file path-like parameters
  • Server logs showing attempts to access sensitive system files like /etc/passwd or application configuration files
  • Unexpected file read operations from Gradio application processes outside normal application directories

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block path traversal patterns in API requests
  • Monitor application logs for JSON payloads containing suspicious file path references
  • Deploy intrusion detection systems (IDS) with signatures for Local File Inclusion attacks
  • Use runtime application self-protection (RASP) solutions to detect unauthorized file access attempts

Monitoring Recommendations

  • Enable detailed logging for all Gradio API endpoints and review for anomalous request patterns
  • Monitor file system access by Gradio processes for unexpected file read operations
  • Configure alerting for requests containing encoded path traversal sequences
  • Implement rate limiting on API endpoints to slow potential exploitation attempts

How to Mitigate CVE-2024-0964

Immediate Actions Required

  • Update Gradio to the latest patched version immediately
  • Review application logs for evidence of prior exploitation attempts
  • Restrict network access to Gradio applications where possible using firewalls or network segmentation
  • Implement input validation at the application layer to reject requests containing path traversal sequences

Patch Information

The Gradio development team has released a security fix addressing this vulnerability. The patch is available via GitHub Commit d76bcaa. Organizations should update their Gradio installations to the patched version as soon as possible. For complete vulnerability disclosure details, refer to the Huntr Vulnerability Disclosure.

Workarounds

  • Deploy a reverse proxy or WAF in front of Gradio applications to filter malicious requests
  • Restrict Gradio application network exposure to trusted networks only
  • Implement application-level input sanitization to reject path traversal patterns
  • Run Gradio applications in containerized or sandboxed environments with restricted file system access
bash
# Example: Update Gradio to latest patched version
pip install --upgrade gradio

# Example: Add nginx WAF rules to block path traversal
location /api {
    if ($request_uri ~* "\.\.") {
        return 403;
    }
    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
  • TypePath Traversal

  • Vendor/TechGradio

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-22
  • Technical References
  • Huntr Vulnerability Disclosure
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2026-28414: Gradio Path Traversal Vulnerability

  • CVE-2023-34239: Gradio Path Traversal Vulnerability

  • CVE-2026-27167: Gradio Information Disclosure Vulnerability

  • CVE-2026-28415: Gradio OAuth CSRF Vulnerability
Default Legacy - Prefooter | 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