Security mailing lists by PureSourceCode

CVE-2024-1540

HIGH 8.2CVSS 3.1

Gradio's CI vulnerable to Command Injection

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.

Published
27 Mar 2024
Last modified
10 Sep 2026
Assigned by
security@huntr.dev
NVD status
Analyzed
Weakness
CWE-77
Also known as
GHSA-xcgp-r7r8-2hc9
Sources
NVDJSONOSV GHSA-xcgp-r7r8-2hc9JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.2 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
NVD security@huntr.dev (Secondary) CVSS 3.0 HIGH 8.6 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
OSV GitHub CVSS 3.0 HIGH 8.6 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gradio_project gradio
cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*
< 2024-02-09 2024-02-09
OSV PyPI gradio < 4.18.0 4.18.0

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 27 Mar 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Mar 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.