CVE-2024-1561
An issue was discovered in gradio-app/gradio, where the `/component_server` endpoint improperly allows the invocation of any method on a `Component` class with attacker-controlled arguments. Specifically, by exploiting the `move_resource_to_block_cache()` method of the `Block` class, an attacker can copy any file on the filesystem to a temporary directory and subsequently retrieve it. This vulnerability enables unauthorized local file read access, posing a significant risk especially when the application is exposed to the internet via `launch(share=True)`, thereby allowing remote attackers to read files on the host machine. Furthermore, gradio apps hosted on `huggingface.co` are also affected, potentially leading to the exposure of sensitive information such as API keys and credentials stored in environment variables.
Scoring
- Severity
- HIGH
- CVSS base score
- 7.5
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS probability
- 9.31%
- CWE
- CWE-29
- Published
- 2024-04-16
- Last modified
- 2026-03-13
Affected products
- gradio-app gradio-app/gradio
Weakness type
Related vulnerabilities
- CVE-2026-66152 — A Path traversal vulnerability in OPSWAT tarball in the SonicWall NetExtender Linux client allows...
- CVE-2026-10732 — All versions of the package decompress are vulnerable to Arbitrary File Write via Archive...
- CVE-2026-24217 — NVIDIA BioNeMo Core for Linux contains a vulnerability where a user could cause a path traversal by...
- CVE-2026-5627 — Path Traversal in mintplex-labs/anything-llm
- CVE-2025-15036 — Path Traversal Vulnerability in mlflow/mlflow
- CVE-2026-30828 — Wallos: SSRF via url parameter leading to File Traversal
- CVE-2025-66608 — A vulnerability has been found in FAST/TOOLS provided by Yokogawa Electric Corporation....
- CVE-2024-2356 — Remote Code Execution due to LFI in '/reinstall_extension' in parisneo/lollms-webui