CVE-2026-49119

Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()

Published Jul 1, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 August 1, 2026 at 22:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-j36p-7w88-g82j Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks
History
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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Gradio-app
Gradio-app gradio
Vendors & Products Gradio-app
Gradio-app gradio
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'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:04 PM
Reserved
May 27, 2026, 5:40 PM
Status
Analyzed
Published
Jul 1, 2026, 7:16 PM
Modified
Oct 25, 2026, 4:10 PM