What it is
CVE-2024-1561 is an unauthenticated vulnerability affecting gradio-app gradio-app/gradio. An issue was discovered in gradio-app/gradio, where the `/component_server` endpoint improperly allows the invocation of any...
Vulnerability report
gradio-app/gradio Arbitrary Local File Read
gradio-app / gradio-app/gradio · 4.12.0
Decision summary
Direct answers before the deeper technical record.
What it is
CVE-2024-1561 is an unauthenticated vulnerability affecting gradio-app gradio-app/gradio. An issue was discovered in gradio-app/gradio, where the `/component_server` endpoint improperly allows the invocation of any...
Is it exploited?
Yes. KEV Intelligence tracks this CVE as a known exploited vulnerability. Confidence is high.
Who is affected?
gradio-app / gradio-app/gradio 4.12.0.
What should we do?
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
Overview
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.
Exploitation evidence
Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.
The Shadowserver
Independent exploitation attestation added to the KEV Intelligence record.
GitHub
Public scanner or PoC coverage increases practical exploitability.
Per-source evidence links for KEV attestations are available through the KEV Intelligence Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| The Shadowserver First | 2025-10-05 00:00 UTC |
Detection
Make the evidence actionable in scanner, SOC, and edge-control workflows.
Raw values available in Pro and Enterprise.
Nuclei template detected 25 Apr 2025.
View Nuclei template (opens in new tab)No KEV Intelligence virtual patch is currently available. Future rules ship for ModSecurity, Cloudflare, and AWS WAF.
Learn about virtual patches →Scanner and exploit-framework references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-1561.yaml | 25 Apr 2025 |
| Nessus | https://www.tenable.com/plugins/nessus/213709 | 10 Jan 2025 |
Risk and context
CVSS v3.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
9.3%
These PoCs are unverified and could contain malware. Use at your own risk.
nuclei · Created Unknown
Timeline
Public proof-of-concept code published
High-confidence, third-party attested exploitation
Scanner coverage available
Scanner coverage available
Vulnerability disclosed publicly
Identifier reserved by the CNA
Pro API
Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
GET /api/v2/pro/kevs/CVE-2024-1561
Free JSON includes basic KEV fields{
"cve_id": "CVE-2024-1561",
"confidence": "High",
"cvss_score": 7.5,
"cvss_estimated": false,
"epss_score": 0.09314,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "attempts": 0, "sensors": 0 }
}
Early warning alerts
Receive curator-selected alerts when exploitation activity warrants attention. Each alert includes the evidence and context needed to decide what requires attention now.