Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE-2024-47166
Summary
Gradio is an open-source Python package designed for quick prototyping. This vulnerability involves a one-level read path traversal in the "/custom_component" endpoint. Attackers can exploit this flaw to access and leak source code from custom Gradio components by manipulating the file path in the request. Although the traversal is limited to a single directory level, it could expose proprietary or sensitive code developers intended to keep private. This impacts users who have developed custom Gradio components and are hosting them on publicly accessible servers. This issue affects gradio versions prior to 4.44.0.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- NONE
- LOW
- NONE
CWE-22 - Path Traversal
Path traversal (or directory traversal), is a vulnerability that allows malicious users to traverse the server's root directory, gaining access to arbitrary files and folders such as application code & data, back-end credentials, and sensitive operating system files. In the worst-case scenario, an attacker could potentially execute arbitrary files on the server, resulting in a denial of service attack. Such an exploit may severely impact the integrity, confidentiality, and availability of an application.
References
Advisory Timeline
- Published