PT-2024-18132 · Gradio · Gradio

Published

2024-04-15

·

Updated

2026-06-04

·

CVE-2024-1561

CVSS v3.1

7.5

High

VectorAV: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

Weakness Enumeration

Related Identifiers

CVE-2024-1561
GHSA-G9CJ-CFPP-4G2X

Affected Products

Gradio