Live threats

All CVEs / Gradio Project

CVE-2024-1561Gradio Project Gradio

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gradio.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gradio_projectgradio≥ 4.12.0 < 4.13.0

Official sources

References

Links published by the sources. Open them with care.