Skip to content
Fencer Vulns
high 7.5

CVE-2024-1561 json

Arbitrary Local File Read via Component Method Invocation in gradio-app/gradio

published 2024-04-16 2 y ago modified 2026-09-10 1 mo ago also GHSA-g9cj-cfpp-4g2x , PYSEC-2026-1415 , EUVD-2024-1205

cvss
7.5
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
9.3%
EPSS 9.3% chance of exploitation in 30 days, percentile 95%
public exploits
0
none known, plus a Nuclei check

Summary

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.

Patch / fix

  • pypi gradio 4.13.0
  • gradio-app gradio-app/gradio 4.13.0

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

9.31% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • Nuclei template Gradio 4.3-4.12 - Local File Read nuclei detection template
  • huntr.com https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
pypi gradio
<4.13.0
4.13.0

Affected products

  • gradio-app gradio-app/gradio
  • gradio_project gradio

Classification

Weakness
  • CWE-29 Path Traversal: '\..\filename'

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.