CVE-2024-1540 HIGH

CVE-2024-1540: Command Injection in gradio-app/gradio via deploy+test-visual.yml workflow

Vendor Gradio-App
Product gradio-app/gradio
Weakness CWE-77
Published March 27, 2024
Last update August 21, 2024

CVSS base score

8.6/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality High
Integrity Low

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

March 27, 2024 CVE published
August 21, 2024 Record updated