Cyber Resilience

CVE-2024-4325

HighPublic PoC

Published: 06 June 2024

Published
06 June 2024
Modified
21 November 2024
KEV Added
Patch
CVSS Score v3.1 8.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS Score 0.6509 98.5th percentile
Risk Priority 56 60% EPSS · 20% KEV · 20% CVSS

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 1.5% 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 Platforms; in the Other ATLAS/OWASP Terms risk domain.

Deeper analysis

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.

EU & UK References

Vulnerability details

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 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 TechniquesAI

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.
T1552.005 Cloud Instance Metadata API Credential Access
Adversaries may attempt to access the Cloud Instance Metadata API to collect credentials and other sensitive data.
Why these techniques?

SSRF in public-facing Gradio web app (T1190) allows unauthorized requests to internal local network and AWS metadata endpoint, enabling cloud instance metadata discovery (T1522) and unsecured credential access (T1552.005).

Affected Assets

gradio project
gradio
≤ 4.41.0

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-918

Penetration testing attempts server-side requests to internal resources, identifying SSRF weaknesses for remediation.

addresses: CWE-918

Outbound connections to external resources can be monitored and limited at the boundary, reducing SSRF impact.

addresses: CWE-918

Validates server-side URLs and resource references to block SSRF attempts.

addresses: CWE-918

Detects server-side request forgery through monitoring of unexpected outbound connections.

References