---
id: CVE-2024-4253
aliases:
  - PYSEC-2024-321
title: >-
  A command injection vulnerability exists in the gradio-app/gradio repository,
  specifically within the 'test-functional.yml' workflow. The…
summary: >-
  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…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'
vendor: gradio
product: gradio
ecosystem: pip
affected:
  - gradio < 4.29.0
patched:
  - gradio 4.29.0
published: '2024-06-04'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/PYSEC-2024-321'
references:
  - url: >-
      https://github.com/gradio-app/gradio/commit/a0e70366a8a406fdd80abb21e8c88a3c8e682a2b
  - url: 'https://huntr.com/bounties/23cb3749-8ae9-4e1a-9023-4a20ca6b675e'
tags:
  - osv
  - pip
  - exploit-available
epss: 0.01704
epssPercentile: 0.76283
ingestedAt: '2026-07-13T18:58:06.425Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/pvharmo2/gha-lab-ee08e207a8'
  checkedAt: '2026-09-24T07:52:51.666Z'
exploitAvailable: true
---

## Overview

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

- `gradio < 4.29.0`

## Remediation

Upgrade to a patched release:

- `gradio 4.29.0`
