Description
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.
Published: 2026-07-01
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Gradio versions prior to 6.16.0 contain a path traversal vulnerability in the FileExplorer component’s preprocess() method. An attacker can craft a file path that includes directory traversal sequences or absolute paths, causing the intended directory. This flaw permits arbitrary file reads potentially allowing further compromise. The weakness is classified as CWE‑22.

Affected Systems

All installations of the Gradio Python library before version 6.16.0 are affected. The vulnerability impacts any software that uses the FileExplorer component within the Gradio framework, regardless of deployment environment, as the flaw operates from the user input side. The affected vendors and products are Gradio by gradio-app:gradio, covering every release less than 6.16.0.

Risk and Exploitability

The CVSS score of 8.7 demonstrates high severity, while the EPSS score of <1% indicates a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog, suggesting no documented active exploitation. The likely attack vector is remote, inferred from the description that an unauthenticated attacker can supply path segments to trigger the flaw. Because unauthenticated users can read arbitrary files, the impact is primarily a loss of confidentiality with potential to enable further system compromise if sensitive files are accessed.

Generated by OpenCVE AI on July 21, 2026 at 13:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Gradio library to version 6.16.0 or later to apply the vendor fix.
  • If an immediate upgrade is not feasible, remove or disable the FileExplorer component in all user-facing interfaces to prevent exploitation.
  • Implement application-level path validation that rejects absolute paths and directory traversal sequences before they reach Gradio’s preprocessing logic.

Generated by OpenCVE AI on July 21, 2026 at 13:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 14 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Gradio Project
Gradio Project gradio
CPEs cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*
Vendors & Products Gradio Project
Gradio Project gradio

Thu, 02 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 02 Jul 2026 04:00:00 +0000

Type Values Removed Values Added
First Time appeared Gradio-app
Gradio-app gradio
Vendors & Products Gradio-app
Gradio-app gradio

Wed, 01 Jul 2026 19:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

Gradio-app Gradio
Gradio Project Gradio
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-14T21:33:12.523Z

Reserved: 2026-05-27T17:40:12.737Z

Link: CVE-2026-49119

cve-icon Vulnrichment

Updated: 2026-07-02T14:37:08.602Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T13:30:07Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')