CVE-2024-1561
highpriority · track · 13EPSS 0.093 · 95 %ileexploit · PoCEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (4)
Public proof-of-concept and weaponised exploit code.
- DiabloHTB/CVE-2024-1561Poc for CVE-2024-1561 affecting Gradio 4.12.0PoC · poc_in_github
- DiabloHTB/Nuclei-Template-CVE-2024-1561Nuclei Templates PoC · poc_in_github
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-g9cj-cfpp-4g2xgradio vulnerable to Path Traversal2024-04-16ghsa · osvUS
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.
- PYSEC-2026-1415gradio vulnerable to Path Traversal2026-07-07vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-1561/cnnvd
- https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2Patchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2024-1561cnnvd
- https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2enisa_euvd
- https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338enisa_euvd
- https://www.gradio.app/changelog#4-13-0enisa_euvd
- https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2Patchnvd
- https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan