CVE-2024-1561
Exploitation confirmed. First attested on 2024-09-18 by GCVE · kevintel, GCVE · shadowserver.
- Published2024-04-16
- Fixed in4.13.0
- WeaknessCWE-29
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2024-04-1600:15CVE publishedNVD
- 2024-09-1808:57Listed as exploited by GCVEGCVE
- 2024-09-1808:57Exploitation first reportedGCVE
Versions per branch
NVD · OSV · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.x | ≥ 4.12.0, < 4.13.0 | 4.13.0 | NVD |
| 4.13 | < 4.13.0 | 4.13.0 | OSV |
| 4.12 | = 4.12.0 | no fix published | CISA-ADP |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As @huntr_ai, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- gradio-app/gradioAffected
- < 4.13.0fixed in 4.13.0custom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-05-10
Fix
- Update Gradio project gradio to 4.13.0
Advisories and patches
- github.comPatch
- www.gradio.appRelease Notes
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-05-13
- PoC-in-GitHub4 repositories, unverifiedknown since 2026-11-01DiabloHTB/CVE-2024-1561DiabloHTB/Nuclei-Template-CVE-2024-1561WeiTao712/hdu-is-work1ImYangC7/hdu-is-lab1
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- GCVEexploitation2024-09-18
- CISA-ADPSSVC decisionpoc2024-05-13
- CNACVSS 3.07.5known since 2026-10-23
- CNAweakness (CWE)CWE-29known since 2026-10-23
- FIRST EPSSEPSS score9.3 %2026-11-17
- PoC-in-GitHubproof of concept4known since 2026-11-01
- ProjectDiscoverydetectionread 2026-11-18
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2024-04-16
Identifiers
- EUVD-2024-1205same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-g9cj-cfpp-4g2xsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2026-1415same flawPyPA Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Published
- 2024-04-16
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-g9cj-cfpp-4g2x
Frequently asked questions
What is CVE-2024-1561?
Is CVE-2024-1561 actively exploited?
What is the CVSS score for CVE-2024-1561?
Running gradio? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-g9cj-cfpp-4g2x
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- CISA Vulnrichment · CC0-1.0