Skip to main content

Gradio CVE-2026-49119

| EUVDEUVD-2026-41115 HIGH
Path Traversal (CWE-22)
2026-07-01 VulnCheck GHSA-j36p-7w88-g82j
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed Gradio FileExplorer endpoint
  2. Delivery
    Submit absolute or '../' path segment
  3. Exploit
    os.path.join discards root_dir prefix
  4. Execution
    preprocess() reads file outside root
  5. Impact
    Exfiltrate sensitive file contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target Gradio application (version before 6.16.0) to instantiate and expose the FileExplorer component, whose preprocess() method processes the attacker-controlled path; this is the exact feature that must be present. Given AV:N/AC:L/PR:N/UI:N, no authentication, user interaction, or special network position is needed once a FileExplorer endpoint is reachable - the attacker simply supplies path segments containing '../' traversal sequences or an absolute path. The primary limiting factor is deployment-specific: apps that do not use FileExplorer are not exploitable, and impact is confined to reading files the Gradio process account can access (VC:H, but VI:N/VA:N - no write or code execution).

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N, base 8.7) describes a network-reachable, low-complexity, unauthenticated attack with high confidentiality impact and no integrity or availability impact - consistent with an arbitrary file read. This is a genuine, easily exploitable disclosure bug wherever a FileExplorer is exposed, though real-world impact is bounded to information disclosure only (no code execution or write). No EPSS score, KEV listing, or public POC was provided, so there is no evidence of active exploitation; the signal is a credible advisory from VulnCheck plus a vendor patch. The main caveat limiting practical risk is that exploitation requires the affected app to actually instantiate and expose the FileExplorer component - not every Gradio deployment does. Net: a real, high-priority disclosure issue for exposed FileExplorer apps, but not a mass-exploitation event based on available data.

Exploit ScenarioDerived

An attacker who can reach a public Gradio app that exposes a FileExplorer submits a crafted path such as an absolute path (e.g. '/etc/passwd') or a segment containing '../' sequences to the component's preprocess() handler. Because os.path.join drops the root_dir prefix, the server returns files outside the intended directory, letting the attacker read source code, configuration, or credential files. No authentication or user interaction is required (AV:N/PR:N/UI:N), and no public exploit has been identified yet.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 01, 2026

Arbitrary file read in Gradio before 6.16.0 lets remote unauthenticated attackers escape the FileExplorer component's configured root_dir by submitting path segments with traversal sequences ('../') or absolute paths, exploiting how os.path.join discards the root prefix when handed an absolute path. Any Gradio app exposing a FileExplorer is exposed, enabling exposure of sensitive files (source code, secrets, credentials) outside the intended directory. There is no public exploit identified at time of analysis, but the flaw was reported by VulnCheck and a vendor patch is available.

RemediationAI

Vendor-released patch: upgrade Gradio to 6.16.0 or later (https://github.com/gradio-app/gradio/releases/tag/gradio%406.16.0), which corrects the preprocess() path handling per PR #13437 and commit 97d541f. If immediate upgrade is not possible, remove or disable exposed FileExplorer components in your Gradio apps, or place the application behind authentication and network restrictions so untrusted users cannot reach the file-browsing endpoint - the trade-off being loss of the file-browsing feature or broader access for legitimate users. As a defense-in-depth measure, run the Gradio process under a low-privilege account with filesystem access limited (e.g. via container mounts or chroot) to only the directory the FileExplorer is meant to serve, limiting what an escape can read. Review VulnCheck's advisory at https://www.vulncheck.com/advisories/gradio-path-traversal-via-fileexplorer-preprocess for details.

Affected VersionsENISA

gradio 0 <6.16.0

Affected Packages

pypi gradio fix: 6.16.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gradio is a widely used Python framework for building web UIs and demos for machine-learning models. The FileExplorer component is designed to let users browse a restricted directory tree rooted at a configured root_dir. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory): the preprocess() method joins attacker-supplied path segments to root_dir using os.path.join, which in Python silently discards all preceding components when any later argument is an absolute path (e.g. os.path.join('/root_dir', '/etc/passwd') returns '/etc/passwd'). Combined with unsanitized '../' sequences, this defeats the intended sandbox. The CPE cpe:2.3:a:gradio-app:gradio:*:*:*:*:*:*:*:* confirms all versions prior to the fix are affected.

Know when Gradio gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-reachable, unauthenticated, low-complexity path traversal yielding arbitrary file read; PR:N and UI:N per the flaw, C:H with I:N/A:N since impact is disclosure only.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Gradio before 6.16.0 contain a path traversal vulnerability in the FileExplorer component's preprocess() method that allows unauthenticated attackers to escape the configured root directory by supplying path segments containing directory traversal sequences or absolute paths. Attackers can provide crafted path segments that cause os.path.join to discard the root_dir prefix entirely, resulting in arbitrary file read or exposure of sensitive files outside the intended directory.

Executive ViewAI

Why It Matters

Gradio before version 6.16.0 contains a vulnerability enabling unauthenticated attackers to access and extract arbitrary files from affected systems, including source code, API credentials, and other sensitive data. Any Gradio application with the FileExplorer component active is at immediate risk of data exfiltration without patching.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 51% exploitable
Prevalence
Medium
popular Python ML UI framework, but only FileExplorer-using apps affected
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Gradio

View all
CVE-2024-39236 CRITICAL POC
9.8 Jul 01

Gradio v4.36.1 was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py. Rat

CVE-2024-0964 CRITICAL POC
9.4 Feb 05

A local file include could be remotely triggered in Gradio due to a vulnerable user-supplied JSON value in an API reques

CVE-2024-4253 CRITICAL POC
9.1 Jun 04

A command injection vulnerability exists in the gradio-app/gradio repository, specifically within the 'test-functional.y

CVE-2024-4325 HIGH POC
8.6 Jun 06

A Server-Side Request Forgery (SSRF) vulnerability exists in the gradio-app/gradio version 4.21.0, specifically within t

CVE-2024-10648 HIGH POC
8.2 Mar 20

A path traversal vulnerability exists in the Gradio Audio component of gradio-app/gradio, as of version git 98cbcae. Rat

CVE-2024-1540 HIGH POC
8.2 Mar 27

A command injection vulnerability exists in the deploy+test-visual.yml workflow of the gradio-app/gradio repository, due

CVE-2023-6572 HIGH POC
8.1 Dec 14

Command Injection in GitHub repository gradio-app/gradio prior to main. Rated high severity (CVSS 8.1), this vulnerabili

CVE-2021-43831 HIGH POC
7.7 Dec 15

Gradio is an open source framework for building interactive machine learning models and demos. Rated high severity (CVSS

CVE-2024-10624 HIGH POC
7.5 Mar 20

A Regular Expression Denial of Service (ReDoS) vulnerability exists in the gradio-app/gradio repository, affecting the g

CVE-2025-0187 HIGH POC
7.5 Mar 20

A Denial of Service (DoS) vulnerability was discovered in the file upload feature of gradio-app/gradio version 0.39.1. R

CVE-2024-8966 HIGH POC
7.5 Mar 20

A vulnerability in the file upload process of gradio-app/gradio version @gradio/video@0.10.2 allows for a Denial of Serv

CVE-2024-10569 HIGH POC
7.5 Mar 20

A vulnerability in the dataframe component of gradio-app/gradio (version git 98cbcae) allows for a zip bomb attack. Rate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy