# CVE-2024-2206: SSRF Vulnerability in gradio-app/gradio

- Severity: High 7.3 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-27T00:00:32.469Z
- Modified: 2026-09-10T03:50:10.756Z
- Also known as: GHSA-r364-m2j9-mf4h, PYSEC-2026-1420
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- gradio-app gradio-app/gradio: from unspecified before 4.18
- gradio_project gradio: before 4.18; from 3.47.1 before 4.18.0
- gradio (PyPI): before 4.18.0

## Every score

- @huntr_ai: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://huntr.com/bounties/2286c1ed-b889-45d6-adda-7014ea06d98e> (exploit, third-party-advisory, web)
- <https://github.com/gradio-app/gradio/commit/49d9c48537aa706bf72628e3640389470138bdc6> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-2206> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://pypi.org/project/gradio> (package)
- <https://github.com/advisories/GHSA-r364-m2j9-mf4h> (advisory)

## Sources

- CVE List: [CVE-2024-2206](https://www.cve.org/CVERecord?id=CVE-2024-2206), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-r364-m2j9-mf4h](https://github.com/advisories/GHSA-r364-m2j9-mf4h), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-2206](https://nvd.nist.gov/vuln/detail/CVE-2024-2206), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1420](https://osv.dev/vulnerability/PYSEC-2026-1420), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-2206 · Whole record: https://cve.day/CVE-2024-2206.json · Rebuilt by cve.day 2026-11-25T22:58:37.934Z
