Gradio has a race condition in update_root_in_config may redirect user traffic
High7.0CVE-2024-47870 · Published Oct 10, 2024 · updated Jan 21, 2025
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| gradio PyPI | < 5.0.0 | 5.0.0 |
Details and references
### Impact **What kind of vulnerability is it? Who is impacted?** This vulnerability involves a **race condition** in the `update_root_in_config` function, allowing an attacker to modify the `root` URL used by the Gradio frontend to communicate with the backend. By exploiting this flaw, an attacker can redirect user traffic to a malicious server. This could lead to the interception of sensitive data such as authentication credentials or uploaded files. This impacts all users who connect to a Gradio server, especially those exposed to the internet, where malicious actors could exploit this race condition. ### Patches Yes, please upgrade to `gradio>=5` to address this issue.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-362
- Also known as
- CVE-2024-47870, PYSEC-2024-218
More Gradio advisories
All Gradio| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Oct 102024 | Gradios's CORS origin validation is not performed when the request has a cookie CVE-2024-47084High8.8fixed in 4.44.0 | High8.8 | 4.44.0 |
| Oct 102024 | Gradio's `is_in_or_equal` function may be bypassed CVE-2024-47164Medium6.5fixed in 5.0.0 | Medium6.5 | 5.0.0 |
| Oct 102024 | Gradio's CORS origin validation accepts the null origin CVE-2024-47165Medium5.4fixed in 5.0.0 | Medium5.4 | 5.0.0 |
| Oct 102024 | Gradio has a one-level read path traversal in `/custom_component` CVE-2024-47166Medium5.3fixed in 4.44.0 | Medium5.3 | 4.44.0 |
| Oct 102024 | Gradio vulnerable to SSRF in the path parameter of /queue/join CVE-2024-47167Medium7.2fixed in 5.0.0 | Medium7.2 | 5.0.0 |
| Oct 102024 | In Gradio, the `enable_monitoring` flag set to `False` does not disable monitoring CVE-2024-47168Low4.3fixed in 4.44.0 | Low4.3 | 4.44.0 |