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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.004 (34.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 34th percentile — 34.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Gradio-App Gradio-App/gradio — versions unspecified
- Gradio Project
Weakness classification (CWE)
Public proof-of-concept exploits
References
- huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98e (Exploit, Third Party Advisory)
- github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6 (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.