Vulnerability · Published Jun 4, 2024 · Assigned by @huntr_ai

CVE-2024-4253Command Injection in gradio-app/gradio

High 7.5

In plain English

A high-severity OS command injection in gradio-app/gradio from gradio-app. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)1.7%top 22.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official description

A command injection vulnerability exists in the gradio-app/gradio repository, specifically within the 'test-functional.yml' workflow. The vulnerability arises due to improper neutralization of special elements used in a command, allowing for unauthorized modification of the base repository or secrets exfiltration. The issue affects versions up to and including '@gradio/video@0.6.12'. The flaw is present in the workflow's handling of GitHub context information, where it echoes the full name of the head repository, the head branch, and the workflow reference without adequate sanitization. This could potentially lead to the exfiltration of sensitive secrets such as 'GITHUB_TOKEN', 'COMMENT_TOKEN', and 'CHROMATIC_PROJECT_TOKEN'.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIgradio4.29.0PYSEC-2024-321

Affected products (as reported)

VendorProductVersions
gradio-app gradio-app/gradio unspecified – before 4.29.0

Weakness: CWE-78 · Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References