INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2026-49119

Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks

CVE-2026-49119 ยท 2026-07-01 high

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Path traversal and file access
Affected
gradio (PyPI)
Gets past
Path restriction
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.7% chance of exploitation in 30 days

How it works, in short

Crafted path segments make the FileExplorer preprocess step discard the root directory prefix, letting unauthenticated callers read files outside it. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.