NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Gradio

CVE-2023-6572: Gradio Exposure of Sensitive Information to an Unauthorized Actor vulnerability

criticalCVSS 3.0 9.6GHSA-gqvf-3hgp-5hxv

CVE-2023-6572 is a sensitive-information exposure in the gradio-app/gradio repository, tagged as command injection. The cited fix removes a step from a GitHub Actions workflow, not library code. The pip package metadata lists gradio below 4.14.0 as affected and 4.14.0 as patched.

Published Dec 14, 2023 · Updated Feb 28, 2024 · Analysis Nov 2, 2026

What an attacker can do

The advisory text is one line: exposure of sensitive information to an unauthorized actor in gradio-app/gradio prior to main. It carries CWE-77 (command injection) and CWE-200. The only fix commit it cites, 5b5af18 titled "remove echo (#6305)", changes one file, .github/workflows/generate-changeset.yml. It deletes a step named "echo concurrency group" that ran an echo command with github.event.workflow_run.head_repository.full_name and head_branch interpolated straight into the shell command.

Those two values come from the triggering pull request, so an external contributor controls them. Putting untrusted values into a run: script is a known script injection pattern in GitHub Actions. A crafted branch name could run commands in the workflow job, which can hold repository secrets and tokens. That fits the CWE-77 and CWE-200 tags and the scope change in the CVSS vector (network, low privileges, high confidentiality and integrity).

The commit does not touch Gradio's runtime code. The sources do not show any flaw in apps you build with the gradio package, and do not show exploitation. The affected package range comes from the advisory metadata, and the pip package may not itself be vulnerable in a way that matters at runtime.

Who is affected

Per the advisory metadata, the pip package gradio below 4.14.0. The fix itself concerns the project's CI workflow, so the practical risk is to the gradio repository's automation, not to deployed apps. Check your version:

pip show gradio

If you maintain your own repository with a similar workflow, check for workflow_run values used in run: steps.

gradio

Ecosystem
PyPI
Affected
>= 0, < 4.14.0
Fixed in
4.14.0
Check
pip show gradio

How to fix it

Upgrade to gradio 4.14.0, the patched version in the advisory.

pip install -U "gradio>=4.14.0"

The fix commit removed the workflow step that echoed workflow_run head repository and branch names. In your own workflows, do not interpolate github.event values into run: scripts. Pass them through environment variables instead. The commit's author did not state a reason, so that guidance is general practice, not from the advisory.

How to tell if you were hit

The advisory gives no indicators. For your own repositories, review workflow files for ${{ github.event.workflow_run.* }} or other pull request-controlled values inside run: steps, and review Actions logs for odd branch names containing shell characters such as backticks, $( or semicolons. Rotate tokens or secrets available to workflows triggered by outside pull requests if you find such runs.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Exposure of Sensitive Information to an Unauthorized Actor in GitHub repository gradio-app/gradio prior to main.

Questions

Does CVE-2023-6572 affect Gradio apps I deploy?

The sources do not show it. The fix commit changes only a GitHub Actions workflow file. The advisory metadata still lists gradio below 4.14.0, so upgrading is the safe course.

Which version is patched?

gradio 4.14.0 is listed as the patched version in the advisory metadata.

What was changed in the fix?

Commit 5b5af18 removed an echo step in generate-changeset.yml that printed the pull request's head repository and branch name from workflow_run values.

Is it exploited in the wild?

No source I read says so, and the entry has no CISA KEV data.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Gradio vulnerabilities

All Gradio entries