RCE in Gradio-App Gradio-App/gradio
CVE-2024-1540
A command injection vulnerability exists in the deploy+test-visual.yml workflow of the gradio-app/gradio repository, due to improper neutralization of special elements used in a command. This vulnerability allows attackers to execute unauthorized commands, potentially leading to unauthorized modification of the base repository or secrets exfiltration. The issue arises from the unsafe handling of GitHub context information within a `run` operation, where expressions inside `${{ }}` are evaluated and substituted before script execution. Remediation involves setting untrusted input values to intermediate environment variables to prevent direct influence on script generation.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N.
EPSS exploit prediction
EPSS: 0.020 (79.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 80th percentile — 79.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.020 · newest: 0.020 · change: 0.000
Affected products
- Gradio-App Gradio-App/gradio — versions unspecified
- Gradio Project
Weakness classification (CWE)
Public proof-of-concept exploits
References
- huntr.com/bounties/0e39e974-9a66-476f-91f5-3f37abb03d77 (Exploit, Third Party Advisory)
- github.com/gradio-app/gradio/commit/d56bb28df80d8db1f33e4acf4f6b2c4f87cb8b28 (Patch)
Frequently asked questions
- What is CVE-2024-1540?
- CVE-2024-1540 is a high-severity vulnerability in Gradio-App Gradio-App/gradio, classified under Command Injection. CVSS score: 8.2/10. Published 2024-03-27.
- How severe is CVE-2024-1540?
- High severity. CVSS v3 base score is 8.2 out of 10.
- Is CVE-2024-1540 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.