Security Resilience

CVE-2024-4254

Gradio Project Gradio

Public PoC
Published
04 June 2024
Modified
15 October 2025
CVSS Score v3 7.1
Click a component to see what it means
Raw vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
EPSS Score 0.0047 41th percentile
Risk Priority 54 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-4254 is a high-severity Invocation of Process Using Visible Sensitive Information (CWE-214) vulnerability in Gradio Project Gradio. Its CVSS base score is 7.1 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Account Discovery (T1087); ranked at the 41th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as Machine Learning Libraries; in the Supply Chain and Deployment risk domain.

The strongest mitigations our analysis identified map to SC-4 (Information in Shared System Resources) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

The 'deploy-website.yml' workflow in the gradio-app/gradio repository, specifically in the 'main' branch, is vulnerable to secrets exfiltration due to improper authorization. The vulnerability arises from the workflow's explicit checkout and execution of code from a fork, which is unsafe as…

more

it allows the running of untrusted code in an environment with access to push to the base repository and access secrets. This flaw could lead to the exfiltration of sensitive secrets such as GITHUB_TOKEN, HF_TOKEN, VERCEL_ORG_ID, VERCEL_PROJECT_ID, COMMENT_TOKEN, AWSACCESSKEYID, AWSSECRETKEY, and VERCEL_TOKEN. The vulnerability is present in the workflow file located at https://github.com/gradio-app/gradio/blob/72f4ca88ab569aae47941b3fb0609e57f2e13a27/.github/workflows/deploy-website.yml.

CWE(s)

AI Security AnalysisAI

AI Category
Machine Learning Libraries
Risk Domain
Supply Chain and Deployment
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Gradio is an open-source Python library for creating web interfaces for machine learning models, fitting under Other Platforms as a deployment and demo tool for AI/ML applications. The vulnerability is in its GitHub repository's CI/CD workflow.

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
T1528 Steal Application Access Token Credential Access
Adversaries can steal application access tokens as a means of acquiring credentials to access remote systems and resources.
T1552 Unsecured Credentials Credential Access
Adversaries may search compromised systems to find and obtain insecurely stored credentials.
T1078.002 Domain Accounts Stealth
Adversaries may obtain and abuse credentials of a domain account as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-2206Same product: Gradio Project Gradio
CVE-2023-25823Same product: Gradio Project Gradio
CVE-2024-4941Same product: Gradio Project Gradio
CVE-2024-1728Same product: Gradio Project Gradio
CVE-2024-1540Same product: Gradio Project Gradio
CVE-2023-34239Same product: Gradio Project Gradio
CVE-2024-4940Same product: Gradio Project Gradio
CVE-2024-1729Same product: Gradio Project Gradio
CVE-2024-1727Same product: Gradio Project Gradio
CVE-2026-10783Same product: Gradio Project Gradio

Affected Assets

gradio project
gradio
all versions

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.2.5

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Prevents unintended transfer of sensitive command-line arguments or environment variables through shared OS resources visible to other processes.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.DS-10 mostly match
blocks

Explicit example of removing confidential data from process listings directly prevents visible sensitive arguments.

PR.PS-06 mostly match
blocks

Secure SDLC practices include avoiding exposure of secrets via command lines or environment variables.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

A.8.29's SOURCE reach (code review, SAST) catches the well-known pattern of passing credentials via command-line arguments or environment variables to process invocations, and the weakness is primarily a source-code defect; the remainder is bounded and nameable — dynamically constructed sensitive arguments that defeat static tracing, and instances inside third-party or binary-only components outside the reviewed source set.

prevents

Secure coding practices can prevent passing sensitive data via command-line arguments or environment variables.

blocks

A.8.3's isolation of sensitive applications/systems (item e) and access controls on who can view process information can block some exploitation of CWE-214 by restricting other users' ability to list sensitive processes, but the clause's primary scope is application/business-layer access control rather than OS-level process visibility, so it does not comprehensively block this specific exposure mechanism.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25–8.29), so it reduces ordinary software implementation weaknesses in delivered code the way those practices do; CWE-214 is a regular software CWE that secure coding and testing would catch, but the clause's reach is contractual and fallible, sitting at the clause's declared ceiling of `partial`.

finds

A.8.8's reach is DISCLOSURE — it finds CWE-214 only where the weakness has been published as a CVE in a third-party component (the observed examples are all CVE-published). Most CWE-214 instances are first-party code defects where developers pass credentials on command lines or in environment variables, which A.8.8's scanning and inventory-based programme does not reach; that is A.8.29's territory. A minority of instances, by the same logic as A.8.8 -> CWE-89 = partial.

References