gradio is vulnerable to Path Traversal
75
CVE Score
High
Path Traversal
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.
Upgrade the gradio library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application exposes a gr.FileExplorer component.
0.0.1 - 6.15.2
Fixed in 6.16.0gradio is vulnerable to Path Traversal in versions 0.0.1 - 6.15.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.