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 trend (30 days)EPSS over the last 30 days for CVE-2024-1540: held from 0.020 to 0.020.

EPSS over last 30 days · oldest: 0.020 · newest: 0.020 · change: 0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.