CVE-2024-1561Gradio Project Gradio
High 7.5 No auth needed
Follow: this CVE · Gradio Project · Gradio Project Gradio We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 3.0
- 7.5
- EPSS
- 9.2% probability of exploitation in 30 days · percentile 96
- Auth required
- No
- Published
- Apr 16, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-29
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Gradio.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gradio |
< 4.13.0 |
4.13.0 |
pip install "gradio>=4.13.0" |
| PyPI | gradio |
< 4.13.0 |
4.13.0 |
pip install "gradio>=4.13.0" |
Per OSV / GitHub Advisories (GHSA-g9cj-cfpp-4g2x, PYSEC-2026-1415). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gradio_project | gradio | ≥ 4.12.0 < 4.13.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory
- www.gradio.app Release Notes