Cyber Resilience

CVE-2024-4325

SSRF in Gradio Project Gradio ≤ 4.41.0

Public PoCSSRF
Published
06 June 2024
Modified
21 November 2024
CVSS Score v3.1 8.6
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS Score 0.37 98th percentile
Risk Priority 86 floored blend · peak EPSS

Summary

CVE-2024-4325 is a high-severity SSRF (CWE-918) vulnerability in Gradio Project Gradio. Its CVSS base score is 8.6 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as Other AI Platforms; in the Other ATLAS/OWASP Terms risk domain.

The strongest mitigations our analysis identified map to AC-4 (Information Flow Enforcement) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

A Server-Side Request Forgery (SSRF) vulnerability exists in Gradio version 4.21.0 within the /queue/join endpoint and the save_url_to_cache function. The flaw stems from insufficient validation of a user-supplied path value that is directly used to perform HTTP requests, enabling interaction with arbitrary destinations.

An unauthenticated remote attacker can exploit the issue over the network by submitting crafted requests that reach internal network resources or the AWS metadata endpoint. Successful exploitation yields high-impact confidentiality exposure on affected systems, with changed scope as reflected in the CVSS 8.6 rating.

The vulnerability is tracked under CWE-918 and carries an EPSS score of 0.6509. Gradio's widespread use for building machine-learning interfaces makes the finding relevant to AI/ML deployments.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

AI Security AnalysisAI

AI Category
Other AI Platforms
Risk Domain
Other ATLAS/OWASP Terms
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Gradio is an open-source Python library/platform for creating web UIs and interfaces for machine learning models, commonly used in AI/ML demos and deployments, making it AI-related under Other Platforms.

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-47167Same product: Gradio Project Gradio
CVE-2024-48052Same product: Gradio Project Gradio
CVE-2026-28416Same product: Gradio Project Gradio
CVE-2024-2206Same product: Gradio Project Gradio
CVE-2024-47166Same product: Gradio Project Gradio
CVE-2024-51751Same product: Gradio Project Gradio
CVE-2023-51449Same product: Gradio Project Gradio
CVE-2024-47164Same product: Gradio Project Gradio
CVE-2024-0964Same product: Gradio Project Gradio
CVE-2026-28414Same product: Gradio Project Gradio

Affected Assets

gradio project
gradio
≤ 4.41.0

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.3.6
  • V1.5.3
  • V5.3.2
  • V10.4.7

Mitigating Controls (NIST 800-53 r5) AI

Information flow enforcement can restrict which destinations the server is allowed to contact on behalf of users.

Input validation directly stops untrusted URLs from being accepted and fetched without destination checks.

Boundary protection limits the network reach of server-initiated requests even if SSRF occurs.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure development practices directly include input validation and destination allow-listing that prevent SSRF.

DE.CM-09 partial match
prevents

Runtime monitoring of web applications and services can detect anomalous outbound requests indicative of SSRF.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover and record SSRF flaws in web applications.

PR.IR-01 partial match
prevents

Network segmentation and egress controls can limit the damage from successful SSRF requests.

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

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Operational threat data describing SSRF campaigns can be used to tighten outbound-request allow-lists and detection rules before attackers exploit them.

References