Gradio Server Vulnerability: SSRF Attacks Possible
CVE-2024-47167

9.8CRITICAL

Key Information:

Vendor

Gradio-app

Status
Vendor
CVE Published:
10 October 2024

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

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

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

.