CVE-2024-4325 in Gradio Project Gradio
A Server-Side Request Forgery (SSRF) vulnerability exists in the gradio-app/gradio version 4.21.0, specifically within the `/queue/join` endpoint and the `save_url_to_cache` function. The vulnerability arises when the `path` value, obtained from the user and expected to be a URL, is used to make an HTTP request with...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gradio Project | Gradio | < 4.41.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
A Server-Side Request Forgery (SSRF) vulnerability exists in the gradio-app/gradio version 4.21.0, specifically within the `/queue/join` endpoint and the `save_url_to_cache` function. The vulnerability arises when the `path` value, obtained from the user and expected to be a URL, is used to make an HTTP request without sufficient validation checks. This flaw allows an attacker to send crafted requests that could lead to unauthorized access to the local network or the AWS metadata endpoint, thereby compromising the security of internal servers.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-4325 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-217789-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| Published | 2024-06-06 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-918: Server-Side Request Forgery (SSRF)
Attacker causes the server to make HTTP requests to attacker-chosen destinations, potentially reaching internal services.
Related attack patterns (CAPEC)
CAPEC-664 Server Side Request Forgery via CWE-918
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A Server-Side Request Forgery (SSRF) vulnerability in gradio-app/gradio version 4.21.0 allows attackers to send crafted requests that can lead to unauthorized access to the local network or the AWS metadata endpoint, compromising the security of internal servers. The vulnerability is rated 8.6 on the CVSS scale, indicating a high severity level. Immediate action is required to mitigate the risk of exploitation.
The vulnerability arises from the `/queue/join` endpoint and the `save_url_to_cache` function, where the `path` value, obtained from the user and expected to be a URL, is used to make an HTTP request without sufficient validation checks. This allows an attacker to craft requests that can access internal resources, such as the local network or the AWS metadata endpoint, leading to potential unauthorized access and data exfiltration.
Compensating controls AI-drafted, review before use
Implement strict input validation for the `path` parameter in the `/queue/join` endpoint to ensure that only valid URLs are processed. Additionally, restrict the application's ability to make HTTP requests to internal resources or the AWS metadata endpoint.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2024-4325?
A Server-Side Request Forgery (SSRF) vulnerability in gradio-app/gradio version 4.21.0 allows attackers to send crafted requests that can lead to unauthorized access to the local network or the AWS metadata endpoint, compromising the security of internal servers. The vulnerability is rated 8.6 on the CVSS scale, indicating a high severity level. Immediate action is required to mitigate the risk of exploitation.
What is the CVSS score for CVE-2024-4325?
CVE-2024-4325 has CVSS 8.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N. EPSS: 2.2%.
Is CVE-2024-4325 actively exploited?
No confirmed active exploitation of CVE-2024-4325 as of 2026-05-30.
How do I remediate CVE-2024-4325?
Priority: HIGH.
What systems are affected by CVE-2024-4325?
CVE-2024-4325 affects Gradio Project Gradio.
What NERC-CIP standard applies to CVE-2024-4325?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 by allowing unauthorized access to internal resources, which can compromise the security and integrity of the control system environment.
What IEC 62443 requirement maps to CVE-2024-4325?
IEC 62443 SR 7.6: This CVE maps to SR 7.6, which requires the implementation of input validation to prevent the injection of malicious data. The lack of validation in the `path` parameter allows for SSRF attacks, which can lead to unauthorized access and data exfiltration.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Gradio Project","product":"Gradio","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.