← Vulnerability feed

Vulnerability record · CVE-2024-1561 · published 16 April 2024

CVE-2024-1561: Gradio project gradio vulnerability

Gradio Project · Gradio

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.

7.5 CVSS 3.0 High EPSS 9.3% · top 4.8% CWE-29 · CWE-29
7.5CVSS 3.0 base score
9.3%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-1561 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-39236Gradio project gradio code injection vulnerabilityGradio v4.36.1 was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py. This vulnerability is triggered …EPSS 0.87%9.8CVE-2023-25823Gradio project gradio hard-coded credentials vulnerabilityGradio is an open-source Python library to build machine learning and data science demos and web applications. Versions prior to 3.13.1 contain Use o…EPSS 0.55%9.4CVE-2024-0964Gradio project gradio path traversal vulnerabilityA local file include could be remotely triggered in Gradio due to a vulnerable user-supplied JSON value in an API request.EPSS 0.96%9.1CVE-2024-4253Gradio project gradio os command injection vulnerabilityA command injection vulnerability exists in the gradio-app/gradio repository, specifically within the 'test-functional.yml' workflow. The vulnerabili…EPSS 1.7%9.1CVE-2023-34239Gradio project gradio improper input validation vulnerabilityGradio is an open-source Python library that is used to build machine learning and data science. Due to a lack of path filtering Gradio does not prop…EPSS 0.65%8.8CVE-2022-24770Gradio project gradio csv injection vulnerability`gradio` is an open source framework for building interactive machine learning models and demos. Prior to version 2.8.11, `gradio` suffers from Impro…EPSS 1.3%8.7CVE-2026-49119Gradio project gradio path traversal vulnerabilityGradio before 6.16.0 contain a path traversal vulnerability in the FileExplorer component's preprocess() method that allows unauthenticated attackers…EPSS 0.93%8.7CVE-2025-23042Gradio project gradio improper authorization vulnerabilityGradio is an open-source Python package that allows quick building of demos and web application for machine learning models, API, or any arbitrary Py…EPSS 0.98%

Source: NIST National Vulnerability Database (record CVE-2024-1561), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.