Browse / AI Framework and Platform Flaws / CVE-2024-4325
Server-Side Request Forgery in gradio
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Server-side request forgery
- Affected
- gradio (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- EPSS
- 37.1% chance of exploitation in 30 days
How it works, in short
Gradio's queue endpoint fetches attacker-supplied URLs server-side through a cache helper without validation, reaching internal hosts and cloud metadata services. (Our summary, written by a model. The source text is below.)
Details
A Server-Side Request Forgery (SSRF) vulnerability exists in the gradio-app/gradio and was discovered in 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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-4325
- https://github.com/gradio-app/gradio/pull/8301
- https://github.com/gradio-app/gradio
- https://huntr.com/bounties/b34f084b-7d14-4f00-bc10-048a3a5aaf88
Source: GitHub Advisory Database, used under CC BY 4.0.