Documented Incident · INC-2024-1561 · High severity

Gradio /component_server Arbitrary Method Invocation Local File Read

CVE-2024-1561 (published April 15, 2024) exposed an unauthenticated local file read vulnerability in `gradio` (`< 4.13.0`) via its `/component_server` API route. The endpoint permitted remote callers to invoke arbitrary methods on server-side `Component` classes, specifically abusing `move_resource_to_block_cache()` with attacker-controlled paths to copy sensitive host files (such as `/etc/passwd`, `.env` files, and Hugging Face/OpenAI tokens) into a publicly downloadable cache directory. Because tens of thousands of AI demos run publicly on Gradio and Hugging Face Spaces, credential exposure risk was widespread. Gradio v4.13.0 restricted callable component methods via explicit allowlists.

Incident dossier metadata

Case ID
INC-2024-1561
Classification
Incident
Date
Severity
High
Sector
Cloud & AI Infrastructure
Attack vector
Exposed Infrastructure
System type
Public ML Demo & Model Hosting Interfaces
CVE / reference
CVE-2024-1561
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-1561

Inspect INC-2024-1561 in Interactive Incidents & Cases Hub

Defensive takeaway

Upgrade Gradio past 4.13.0, never store long-lived production secrets in public demo environments, and restrict server-side RPC method dispatch strictly.

Mapped AI security techniques

Mapped defensive controls

Source citation records