7.5
HIGH CVSS 3.0
CVE-2024-1561
Gradio Authenticated Local File Read and Exfiltration (Path Traversal)
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.

INFO

Published Date :

April 16, 2024, 12:15 a.m.

Last Modified :

July 30, 2025, 2:48 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-1561 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gradio_project gradio
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.0 HIGH [email protected]
Solution
Follow the instructions below to mitigate the CVE-2024-1561 vulnerability.
Upgrade to Gradio version 4.13.0 or later.
Public PoC/Exploit Available at Github

CVE-2024-1561 has a 30 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-1561.

URL Resource
https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2 Patch
https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338 Exploit Third Party Advisory
https://www.gradio.app/changelog#4-13-0 Release Notes
https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2 Patch
https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338 Exploit Third Party Advisory
https://www.gradio.app/changelog#4-13-0 Release Notes
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-1561 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-1561 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

护网2024-POC收录备份

Updated: 1 week, 4 days ago
0 stars 0 fork 0 watcher
Born at : Aug. 4, 2025, 1:25 p.m. This repo has been linked 119 different CVEs too.

备份的漏洞库,3月开始我们来维护

Updated: 1 month ago
2 stars 0 fork 0 watcher
Born at : June 30, 2025, 9:14 a.m. This repo has been linked 216 different CVEs too.

None

Updated: 2 months ago
0 stars 0 fork 0 watcher
Born at : June 15, 2025, 2:32 a.m. This repo has been linked 216 different CVEs too.

None

Updated: 2 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : May 30, 2025, 2:59 a.m. This repo has been linked 213 different CVEs too.

None

HTML

Updated: 3 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : May 6, 2025, 2:20 a.m. This repo has been linked 201 different CVEs too.

wy876

Python

Updated: 1 month, 2 weeks ago
8 stars 2 fork 2 watcher
Born at : April 11, 2025, 4:25 a.m. This repo has been linked 209 different CVEs too.

This thesis project focuses on the creation of an autonomous agent that is capable of understanding CVE description and create from its interpretation a vulnerable Docker container, which can then be used to gather attack patterns data. The Docker creation process is benchmarked in order to understand how well the agent is performing its tasks.

Dockerfile HTML Python Shell Groovy PHP Java SaltStack JavaScript CSS

Updated: 6 days, 12 hours ago
0 stars 0 fork 0 watcher
Born at : April 1, 2025, 1:35 p.m. This repo has been linked 115 different CVEs too.

wy876 POC | wy876的poc仓库已删库,该项目为其仓库镜像

Updated: 3 weeks, 6 days ago
349 stars 196 fork 196 watcher
Born at : March 7, 2025, 10:17 a.m. This repo has been linked 201 different CVEs too.

收集整理漏洞EXP/POC,大部分漏洞来源网络,目前收集整理了1100多个poc/exp,长期更新。

Updated: 3 months ago
1 stars 0 fork 0 watcher
Born at : March 7, 2025, 2:48 a.m. This repo has been linked 142 different CVEs too.

备份的漏洞库,3月开始我们来维护

Updated: 3 weeks, 6 days ago
1382 stars 392 fork 392 watcher
Born at : March 4, 2025, 2:54 p.m. This repo has been linked 216 different CVEs too.

2023HW漏洞整理,收集整理漏洞EXp/POC,大部分漏洞来源网络,目前收集整理了300多个poc/exp,长期更新。

Updated: 3 months, 3 weeks ago
1 stars 1 fork 1 watcher
Born at : March 3, 2025, 6:09 a.m. This repo has been linked 177 different CVEs too.

漏洞文库 wiki.wy876.cn

HTML

Updated: 4 weeks, 2 days ago
77 stars 56 fork 56 watcher
Born at : Feb. 26, 2025, 9:46 a.m. This repo has been linked 201 different CVEs too.

None

Updated: 1 month, 1 week ago
4 stars 0 fork 0 watcher
Born at : Dec. 19, 2024, 1:46 a.m. This repo has been linked 123 different CVEs too.

这是一个每天同步Vulnerability-Wiki中docs-base中内容的项目

HTML

Updated: 1 month, 1 week ago
4 stars 1 fork 1 watcher
Born at : Sept. 20, 2024, 3:27 a.m. This repo has been linked 251 different CVEs too.

None

Updated: 2 months, 3 weeks ago
1 stars 1 fork 1 watcher
Born at : Sept. 9, 2024, 1:28 a.m. This repo has been linked 128 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-1561 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-1561 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jul. 30, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* versions from (including) 4.12.0 up to (excluding) 4.13.0
    Added Reference Type CVE: https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2 Types: Patch
    Added Reference Type huntr.dev: https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2 Types: Patch
    Added Reference Type CVE: https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338 Types: Exploit, Third Party Advisory
    Added Reference Type huntr.dev: https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338 Types: Exploit, Third Party Advisory
    Added Reference Type CVE: https://www.gradio.app/changelog#4-13-0 Types: Release Notes
    Added Reference Type huntr.dev: https://www.gradio.app/changelog#4-13-0 Types: Release Notes
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2
    Added Reference https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338
    Added Reference https://www.gradio.app/changelog#4-13-0
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    May. 10, 2024

    Action Type Old Value New Value
    Added Reference huntr.dev https://www.gradio.app/changelog#4-13-0 [No types assigned]
  • CVE Received by [email protected]

    Apr. 16, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference huntr.dev https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338 [No types assigned]
    Added Reference huntr.dev https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2 [No types assigned]
    Added CWE huntr.dev CWE-29
    Added CVSS V3 huntr.dev AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact