Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2023-34239

CVE-2023-34239: Gradio Path Traversal Vulnerability

CVE-2023-34239 is a path traversal vulnerability in Gradio that allows unauthorized file access due to insufficient path filtering. This article covers the technical details, affected versions, security impact, and mitigation.

Published: January 28, 2026

CVE-2023-34239 Overview

CVE-2023-34239 is a critical vulnerability affecting Gradio, an open-source Python library widely used for building machine learning and data science web interfaces. The vulnerability stems from improper input validation that allows attackers to exploit two distinct security flaws: a path traversal vulnerability due to lack of path filtering, and a Server-Side Request Forgery (SSRF) issue caused by improper URL proxy restrictions. These flaws enable unauthorized file access and potential abuse of the proxy functionality to reach internal resources.

Critical Impact

Unauthenticated remote attackers can access sensitive files on the server and abuse proxy functionality to reach internal network resources, potentially leading to data exfiltration and lateral movement within protected networks.

Affected Products

  • Gradio versions prior to 3.34.0
  • gradio_project gradio (Python package)
  • Machine learning applications built with vulnerable Gradio versions

Discovery Timeline

  • 2023-06-08 - CVE-2023-34239 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-34239

Vulnerability Analysis

This vulnerability combines two critical security weaknesses in the Gradio library. The first issue involves insufficient path filtering, which allows attackers to traverse directory structures and access files outside the intended web root. The second issue relates to improper URL validation in the proxy functionality, enabling Server-Side Request Forgery attacks. Together, these flaws create a significant attack surface that can be exploited remotely without authentication, potentially compromising confidentiality and integrity of affected systems.

The vulnerability is classified under CWE-20 (Improper Input Validation), highlighting that the root cause is the application's failure to properly sanitize and validate user-supplied input before processing file paths and proxy URLs.

Root Cause

The root cause of CVE-2023-34239 lies in Gradio's failure to implement proper input validation and sanitization mechanisms. Specifically, the library lacks adequate path filtering for file access operations, allowing directory traversal sequences (such as ../) to escape the intended directory structure. Additionally, the URL proxy functionality does not maintain an allowlist or properly restrict which URLs can be proxied, enabling attackers to make requests to arbitrary internal or external endpoints through the application.

Attack Vector

The attack vector for this vulnerability is network-based and requires no authentication or user interaction. An attacker can exploit the path traversal vulnerability by crafting malicious requests containing directory traversal sequences to access sensitive files such as configuration files, credentials, or application source code.

For the SSRF component, attackers can manipulate proxy requests to access internal services, cloud metadata endpoints, or other resources that should not be externally accessible. This could lead to:

  • Unauthorized access to sensitive configuration files
  • Exposure of internal network services
  • Cloud metadata harvesting in cloud-hosted environments
  • Potential for further lateral movement within the network

Technical details regarding the specific exploitation mechanisms can be found in the GitHub Security Advisory GHSA-3qqg-pgqq-3695.

Detection Methods for CVE-2023-34239

Indicators of Compromise

  • HTTP requests containing path traversal sequences such as ../, ..%2f, or URL-encoded variants targeting Gradio endpoints
  • Unusual proxy requests to internal IP addresses (e.g., 127.0.0.1, 169.254.169.254, 10.x.x.x, 192.168.x.x)
  • Access logs showing requests for sensitive files like /etc/passwd, configuration files, or application secrets
  • Unexpected outbound connections from the Gradio application to internal services

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal patterns in incoming requests
  • Monitor application logs for requests containing ../ sequences or attempts to access files outside the web root
  • Deploy network monitoring to identify SSRF attempts targeting internal services or cloud metadata endpoints
  • Use SentinelOne's behavioral AI to detect anomalous file access patterns and network connections from Gradio-based applications

Monitoring Recommendations

  • Enable verbose logging on Gradio applications to capture all incoming requests and proxy activities
  • Configure alerting for access attempts to sensitive system files or directories
  • Monitor network traffic for connections to internal IP ranges originating from publicly-accessible Gradio instances
  • Regularly audit Gradio application dependencies and version information

How to Mitigate CVE-2023-34239

Immediate Actions Required

  • Upgrade Gradio to version 3.34.0 or later immediately
  • Review application logs for any evidence of exploitation attempts
  • Audit file access logs to identify potential unauthorized file reads
  • Implement network segmentation to limit the impact of potential SSRF exploitation

Patch Information

The Gradio development team has addressed these vulnerabilities in version 3.34.0. The fixes were implemented through two separate pull requests:

  • GitHub Pull Request #4370 - Addresses the path filtering issue
  • GitHub Pull Request #4406 - Implements proper URL proxy restrictions

Users should upgrade using pip:

bash
pip install --upgrade gradio>=3.34.0

Workarounds

  • There are no known workarounds for this vulnerability according to the vendor advisory
  • Implement network-level access controls to restrict who can access Gradio applications
  • Deploy a web application firewall (WAF) with rules to block path traversal and SSRF patterns as a temporary measure
  • Consider running Gradio applications in isolated network environments until patching is complete
bash
# Upgrade Gradio to patched version
pip install --upgrade gradio>=3.34.0

# Verify installed version
pip show gradio | grep Version

# For requirements.txt, specify minimum version
echo "gradio>=3.34.0" >> requirements.txt

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.1

  • EPSS Probability0.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-20

  • NVD-CWE-noinfo
  • Vendor Resources
  • GitHub Pull Request #4370

  • GitHub Pull Request #4406

  • GitHub Security Advisory GHSA-3qqg-pgqq-3695
  • Related CVEs
  • CVE-2026-28414: Gradio Path Traversal Vulnerability

  • CVE-2024-0964: 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