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
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
- Active Scanning: Scan for Exposed AI Infrastructure AML.T0006.002
- Data from Local System AML.T0037
- Exploit Public-Facing Application AML.T0049
- Unsecured Credentials AML.T0055
- Misconfigured or Publicly Exposed AI Services AML.T0132
Mapped defensive controls
- Control Access to AI Models and Data at Rest AML.M0005
- Vulnerability Scanning AML.M0016
- Control Access to AI Models and Data in Production AML.M0019
Source citation records
- NVD Record CVE-2024-1561: Gradio Component Server Local File Read · NIST National Vulnerability Database (NVD) ·