CVE-2024-2206
Last modified
CVE-2024-2206 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.42% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Gradio Project | Gradio | >= 3.47.1, < 4.18.0 |
References
- https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98eExploit, Third Party Advisory
- https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98eExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-2206?
How severe is CVE-2024-2206?
How do I fix CVE-2024-2206?
Are you affected by CVE-2024-2206?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
