CVE-2024-4325
Server-Side Request Forgery (SSRF) in gradio-app/gradio
Record summary
CVE-2024-4325 has a selected CVSS score of 8.6 (high); EIP currently links 1 Nuclei template.
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.
Exploitation context
Known exploitation
- VulnCheck KEV
- Listed · Sep 25, 2024 · VulnCheck
- Reported exploitation
- Observed · VulnCheck
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Jun 6, 2024 · Source: CVE List
Affected products and versions
4| Product | Source | Version range | Status |
|---|---|---|---|
gradio-app/gradioBrowse gradio-app / gradio-app/gradio | CVE List | Through latest | affected |
| VulnCheck | Version data not supplied | ||
Default status: unknown | CVE List | Through 4.21.0 | affected |
gradioBrowse PyPI / gradio | GitHub Advisory | Through 4.36.0 | affected |
Nuclei templates
1ProjectDiscoveryHIGHGradio - Server-Side Request ForgeryCVSS 8.6
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.
Impact
Unauthenticated attackers can force the server to make arbitrary requests via SSRF, potentially accessing internal services and cloud metadata endpoints.
Remediation
Update Gradio to a version later than 4.21.0 that patches the SSRF vulnerability.
Source: ProjectDiscovery