patchminder
Weaponized · Nuclei CVE-2024-1561

Information disclosurein gradio-app gradio.

Published 16 Apr 2024 · Updated 13 Feb 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 9.2% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 4.13.0 or later
In plain words

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 now
  • Upgrade gradio-app/gradio to 4.13.0 or later.
  • Upgrade gradio (PyPI) to 4.13.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
gradio-app/gradio
before 4.13.0
4.13.0
CVE record
gradio (PyPI)
before 4.13.0
4.13.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Feb 2024
    CVE ID reserved by @huntr_ai.
  2. 16 Apr 2024
    Published in the CVE List.
  3. 11 May 2024
    First public proof of concept on GitHub.
  4. 13 Feb 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
5 repositories
NucleiGradio 4.3-4.12 · Local File Readdetection template
GitHubno warning signs foundDiabloHTB/CVE-2024-15614 stars · created 11 May 2024Poc for CVE-2024-1561 affecting Gradio 4.12.0
GitHubno warning signs foundDiabloHTB/Nuclei-Template-CVE-2024-15613 stars · created 12 May 2024Nuclei Templates
GitHubno warning signs foundK3ysTr0K3R/CVE-2024-15610 stars · created 3 Jul 2026CVE-2024-1561 · Gradio Arbitrary File Read
GitHubno warning signs foundWeiTao712/hdu-is-work10 stars · created 27 Oct 2026HDU IS Work 1 · secure REST API, CI/CD security pipeline, CVE-2024-1561 remediation
GitHubno warning signs foundImYangC7/hdu-is-lab10 stars · created 27 Oct 2026Information Security Lab 1: secure REST API, CI security scans, and CVE-2024-1561 analysis

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other gradio vulnerabilities

Same weakness:

All CWE-29 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-1561: Information disclosure in gradio-app gradio. https://patchminder.com/cve/cve-2024-1561/ (accessed 5 December 2026).