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

Published Jun 4, 2024
·
Updated

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 'GITHUBTOKEN', 'COMMENTTOKEN', and 'CHROMATICPROJECTTOKEN'.

Affected Software

2 affected components
gradio gradio<=0.6.12
Gradio Project Gradio Python<4.29.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade gradio-app/gradio to a version that resolves this vulnerability.

    Fixed in @gradio/video@0.6.12
  2. Compensating control

    Review the 'test-functional.yml' workflow to ensure GitHub context values (e.g., head repository full name, head branch, and workflow reference) are sanitized/neutralized before being used in any command invocation to prevent command injection.

  3. Operational

    Rotate any exposed secrets/tokens in case they were exfiltrated during exploitation, including 'GITHUB_TOKEN', 'COMMENT_TOKEN', and 'CHROMATIC_PROJECT_TOKEN'.

Event History

Jun 4, 2024
CVE Published
via MITRE·07:30 AM
Data Sourced
via MITRE·07:30 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 1, 2026
Exploit Published
via GitHub·10:59 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-4253?

CVE-2024-4253 is classified as a medium severity command injection vulnerability.

2

How do I fix CVE-2024-4253?

To fix CVE-2024-4253, update the Gradio software to version 0.6.13 or later.

3

What software is affected by CVE-2024-4253?

CVE-2024-4253 affects Gradio software versions up to and including 0.6.12.

4

What type of vulnerability is CVE-2024-4253?

CVE-2024-4253 is a command injection vulnerability that allows unauthorized command execution.

5

In which component of Gradio is CVE-2024-4253 present?

CVE-2024-4253 is present in the 'test-functional.yml' workflow of the Gradio repository.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203