SSRF in Gradio-App Gradio-App/gradio
CVE-2024-2206
An SSRF vulnerability exists in the gradio-app/gradio due to insufficient validation of user-supplied URLs in the `/proxy` route. Attackers can exploit this vulnerability by manipulating the `self.replica_urls` set through the `X-Direct-Url` header in requests to the `/` and `/config` routes, allowing the addition of arbitrary URLs for proxying. This flaw enables unauthorized proxying of requests and potential access to internal endpoints within the Hugging Face space. The issue arises from the application's inadequate checking of safe URLs in the `build_proxy_request` function.
Vulnerability class: SSRF (Server-Side Request Forgery)
EPSS: 0.004 (34.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
Affected products
- Gradio-app Gradio-app/gradio — versions unspecified
- Gradio_project Gradio
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@huntr.dev (Exploit, Third Party Advisory)
- security@huntr.dev (Patch)
Frequently asked questions
- What is CVE-2024-2206?
- CVE-2024-2206 is a medium-severity vulnerability in Gradio-App Gradio-App/gradio, classified under Server-Side Request Forgery (SSRF). CVSS score: 6.5/10. Published 2024-03-27.
- How severe is CVE-2024-2206?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2024-2206 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.