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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
Lifecycle Timeline
1DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-41115
GHSA-j36p-7w88-g82j