CVE-2024-1540

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

HIGH
8.2
CVSS Score
Published: March 27, 2024 at 03:54 PM UTC
Updated: June 17, 2026 at 07:04 AM UTC
2 products affected across 2 vendorsGradioProject Gradio

Using gradio-app/gradio by gradio-app?

Get instant alerts when new vulnerabilities affect gradio-app/gradio - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.2
Exploit prediction
EPSS 2%
SSVC
PoC

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2024-02-09
Affected range stops below 2024-02-09, so it looks safe — our inference, not a vendor statement
All versions

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-77

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card