CVE-2024-1540CWE-77

Command Injection in gradio-app/gradio via deploy+test-visual.yml workflow

High · published March 27, 2024

CVSS v3.0
8.6
EPSS
2%
Percentile
80.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
8.6 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.01976 · 80.3th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2024-03-27T15:54Z
EPSS history
Timeline
  • 27 MAR 15:54Z
    Command Injection in gradio-app/gradio via deploy+test-visual.yml workflow
    cvelistv5