CVE-2024-1561 Details
Description
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 13, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2 | CVE | Patch |
| https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338 | CVE | ExploitThird Party Advisory |
| https://www.gradio.app/changelog#4-13-0 | CVE | Release Notes |
| https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2 | [email protected] | Patch |
| https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338 | [email protected] | ExploitThird Party Advisory |
| https://www.gradio.app/changelog#4-13-0 | [email protected] | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-29 | Path Traversal: '\..\filename' | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gradio project gradio | >= 4.12.0, < 4.13.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jul 30, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| May 10, 2024 | CVE Modified | [email protected] |
| Apr 16, 2024 | New CVE Received | [email protected] |