Read the docs
TI-2024-01457 Aliases CVE-2024-1561GHSA-g9cj-cfpp-4g2x

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

Priority HIGH 72CWE-29Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.09314 95th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed gradio-app/gradio (gradio-app): 4.13.0gradio (PyPI): 4.13.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gradio-appgradio-app/gradiobefore 4.13.04.13.0Patch availableCNA
—gradio (PyPI)before 4.13.04.13.0Patch availableGHSA-g9cj-cfpp-4g2x
  • gradio-app/gradio Vendorgradio-app Affected before 4.13.0 Fixed in 4.13.0 Patch available CNA
  • gradio (PyPI) Vendor— Affected before 4.13.0 Fixed in 4.13.0 Patch available GHSA-g9cj-cfpp-4g2x

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*4.12.0 to before 4.13.0Vulnerablegradio-app
  • cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* Versions 4.12.0 to before 4.13.0 Vulnerable ·gradio-app

Remediation

  • Fix · CNA gradio-app/gradio (gradio-app) Fixed in 4.13.0
  • Fix · GHSA-g9cj-cfpp-4g2x gradio (PyPI) Fixed in 4.13.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-1561
  2. 2026-10-03 Alias added: GHSA-g9cj-cfpp-4g2x

References

  • TI-2024-26222 Gradio v4.36.1 was discovered to contain a code injection vulnerability via the component… CVSS 3.1CRITICAL 9.8
  • TI-2024-01607 Local File Inclusion in gradio-app/gradio CVSS 3.1HIGH 7.5
  • TI-2024-00889 LFI in Gradio CVSS 3.1CRITICAL 9.4
  • TI-2025-16852 Gradio Blocked Path ACL Bypass Vulnerability CVSS 4.0HIGH 8.7
  • TI-2026-22690 Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing CVSS 3.1HIGH 8.6
  • TI-2024-09866 Path Traversal in gradio-app/gradio CVSS 3.0HIGH 8.2
See all 49 →

Sources