PT-2024-18132 · Gradio · Gradio
Published
2024-04-15
·
Updated
2026-06-04
·
CVE-2024-1561
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
gradio-app/gradio (affected versions not specified)
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 enables unauthorized local file read access, posing a significant risk especially when the application is exposed to the internet, 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.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gradio