CVE-2024-4254
Gradio Project Gradio
Raw vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:NCVSS 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
- 🇪🇺 ENISA EUVD: EUVD-2024-32806
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
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
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.
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.
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.
Secure coding practices can prevent passing sensitive data via command-line arguments or environment variables.
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.
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`.
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.