Gradio Server Vulnerability: SSRF Attacks Possible
CVE-2024-47167
What is CVE-2024-47167?
A significant vulnerability in Gradio's open-source Python package allows for Server-Side Request Forgery (SSRF) via the /queue/join
endpoint. Attackers can exploit the async_save_url_to_cache
function, forcing the Gradio server to send HTTP requests to URLs controlled by the attacker. This exposes internal servers and services on the local network, potentially leading to data exfiltration or the creation of unwanted internal requests. The risk is particularly relevant for users integrating components that fetch URLs, such as the Video component. It is recommended for users to upgrade to Gradio version 5 or above. As a precautionary measure, limiting URL-based inputs to trusted domains and implementing strict URL validation can help mitigate the risks associated with this vulnerability.
Affected Version(s)
gradio < 5.0