Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed Gradio FileExplorer endpoint
-
DeliverySubmit absolute or '../' path segment
-
Exploitos.path.join discards root_dir prefix
-
Executionpreprocess() reads file outside root
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Gradio v4.36.1 was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py. Rat
A local file include could be remotely triggered in Gradio due to a vulnerable user-supplied JSON value in an API reques
A command injection vulnerability exists in the gradio-app/gradio repository, specifically within the 'test-functional.y
A Server-Side Request Forgery (SSRF) vulnerability exists in the gradio-app/gradio version 4.21.0, specifically within t
A path traversal vulnerability exists in the Gradio Audio component of gradio-app/gradio, as of version git 98cbcae. Rat
A command injection vulnerability exists in the deploy+test-visual.yml workflow of the gradio-app/gradio repository, due
Command Injection in GitHub repository gradio-app/gradio prior to main. Rated high severity (CVSS 8.1), this vulnerabili
Gradio is an open source framework for building interactive machine learning models and demos. Rated high severity (CVSS
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the gradio-app/gradio repository, affecting the g
A Denial of Service (DoS) vulnerability was discovered in the file upload feature of gradio-app/gradio version 0.39.1. R
A vulnerability in the file upload process of gradio-app/gradio version @gradio/video@0.10.2 allows for a Denial of Serv
A vulnerability in the dataframe component of gradio-app/gradio (version git 98cbcae) allows for a zip bomb attack. Rate
EUVD-2026-41115
GHSA-j36p-7w88-g82j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB