Vulnerabilities · 2024 · Gradio Project
CVE-2024-2206
Gradio Project Gradio vulnerability
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.
Affected products
Gradio. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gradio Project Gradio runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6 · Patch
- huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98e · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-2206
- github.com/advisories/GHSA-r364-m2j9-mf4h
- nvd.nist.gov/vuln/detail/CVE-2024-2206
- cve.org/CVERecord?id=CVE-2024-2206
More vulnerabilities in Gradio Project products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.