CVE-2024-39236: Withdrawn Advisory Gradio Was Discovered To Contain Vulnerability
CRITICALCVE-2024-39236 is a CRITICAL (CVSS 9.8) gradio was discovered to contain vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Withdrawn Advisory libraries in the PyPI ecosystem. The issue involves gradio was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py. Remediation is available in the latest vendor maintenance releases.
CVE-2024-39236 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-39236
To remediate this vulnerability, upgrade all affected Withdrawn Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Gradio>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Gradio
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-39236, inspect your installed packages using pip:
pip show Gradio
Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show Gradio command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Withdrawn Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-39236 Affected Withdrawn Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Gradio
|
PyPI |
4.36.1
All 1 versions
4.36.1
|
None specified
|
References
Frequently Asked Questions
What is CVE-2024-39236?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2024-39236?
Is Gradio affected?
What is the CVSS score of CVE-2024-39236?
What CWE is associated with CVE-2024-39236?
How can I check PyPI dependencies for CVE-2024-39236?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9v2f-6vcg-3hgv",
"modified" : "2026-06-05T17:54:30Z",
"published" : "2024-07-01T21:31:15Z",
"withdrawn" : "2025-10-17T20:26:00Z",
"aliases" : [ "CVE-2024-39236" ],
"summary" : "Withdrawn Advisory: Gradio was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py",
"details" : "### Withdrawn Advisory\nThis advisory has been withdrawn because the it only affects a user who runs specifically crafted code that happens to use gradio library. More information can be found [here](https://github.com/gradio-app/gradio/issues/8853).\n\n### Original Description\nGradio v4.36.1 was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py. This vulnerability is triggered via a crafted input.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Gradio"
},
"versions" : [ "4.36.1" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-39236"
}, {
"type" : "WEB",
"url" : "https://github.com/gradio-app/gradio/issues/8853"
}, {
"type" : "WEB",
"url" : "https://github.com/gradio-app/gradio/issues/8853#issuecomment-2239858984"
}, {
"type" : "WEB",
"url" : "https://github.com/Aaron911/PoC/blob/main/Gradio.md"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-9v2f-6vcg-3hgv"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-274.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-01T22:13:35Z",
"nvd_published_at" : "2024-07-01T19:15:05Z"
}
}