CVEvulnerability

CVE-2024-2206

6.5 MEDIUM Published 2024-03-27 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2024-03-27
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
6.5 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS 3.0 ([email protected])
7.3 HIGH — CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-918

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.

Affected configurations

• gradio project gradio (>= 3.47.1 < 4.18.0)

Related

Weakness · CWE (1)

  • CWE-918 Server-Side Request Forgery weakness

References