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: 6.9 [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]
CVE-ID: CVE-2024-47166
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Gradio

How to mitigate CVE-2024-47166

Install security update from vendor's website.

Gradio - update to 4.44.0

External References

Related Security Bulletins