Path traversal in Gradio - CVE-2024-47166

 

Path traversal in Gradio - CVE-2024-47166

Published: October 10, 2024 / Updated: April 28, 2026


Vulnerability identifier: #VU128287
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2024-47166
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Gradio
Affected software:
Gradio

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to path traversal in the /custom_component endpoint when processing a manipulated file path in a request. A remote attacker can send a specially crafted request to disclose sensitive information.

The traversal is limited to a single directory level and can expose source code from custom Gradio components.


How to mitigate CVE-2024-47166

Install security update from vendor's website.

Sources