Intel

AIKIDO-2026-247270

gradio is vulnerable to Path Traversal

Path TraversalCVE-2026-49119 Published 3 days ago

75

High Risk

This Affects:

PYTHONgradio
0.0.1 - 6.15.2
Fixed in 6.16.0
Are you affected? Scan for Free

TL;DR

The FileExplorer component's preprocess() method builds a path by joining a configured root directory with caller-supplied path segments using unsafe path construction. When the segments contain directory traversal sequences or absolute paths, the root prefix is discarded and the resolved path escapes the intended directory. Unauthenticated requests can therefore read arbitrary files outside the configured root, exposing sensitive files on the host. The fix routes both single and multiple selection paths through a safe-join helper that rejects out-of-root resolutions.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application exposes a gr.FileExplorer component.

Background info

gradio is vulnerable to Path Traversal in versions 0.0.1 - 6.15.2.

How to fix this

Upgrade the gradio library to the patch version.