Incident report

Gradio save_url_to_cache Server-Side Request Forgery Against Internal Networks

CVE-2024-4325 (published June 6, 2024) revealed a Server-Side Request Forgery (SSRF) vulnerability in Gradio (`< 4.42.0`) inside `save_url_to_cache` and `/queue/join` handling. Unauthenticated external callers could submit arbitrary URL parameters to make the Gradio host probe internal network ports, fetch private VPC microservices, or query cloud instance metadata endpoints. In enterprise cloud environments running internal Gradio evaluation dashboards, SSRF enabled lateral discovery and cloud credential theft. Maintainers hardened URL validation and blocked private-network fetch targets in updated releases.

Incident record

Reported
Severity
High
Vector
Exposed Infrastructure
Affected system type
Public ML Demo & Model Hosting Interfaces
Reference
CVE-2024-4325
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-4325

Inspect in Interactive Incidents Hub

Defensive lesson

Restrict outbound HTTP fetches in AI web apps via egress proxies and block private RFC-1918 and cloud metadata IPs after DNS resolution.

Referenced techniques