CVE-2024-1561
published high CVSS 3.0 · 7.5Arbitrary Local File Read via Component Method Invocation in gradio-app/gradio
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gradio-app | gradio-app/gradio | unspecified to < 4.13.0 (affected · custom) | @huntr_ai · cna |
| gradio_project | gradio | 4.12.0 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-29 CWE-29 Path Traversal: '\..\filename'
References
3Provider assertions
3@huntr_ai · cna
Arbitrary Local File Read via Component Method Invocation in gradio-app/gradio
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9746596adae5eebd843f1a7311bba02fb02cdcdbea43640b4487b1c39f551e8d
- Ingested
- 23 Sep 2026, 08:18:22 UTC
- Source record
- Official CVE record