Gradio has a race condition in update_root_in_config may redirect user traffic
CVE-2024-47870 · GHSA-xh2x-3mrm-fwqm · published 2024-10-10 · updated 2025-01-21
- Severity
- High
- CVSS score
- 7.0
- Chance of exploitation (EPSS)
- 0.37%
- Fixed in
- 5.0.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
What kind of vulnerability is it? Who is impacted? This vulnerability involves a race condition in the updaterootin_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.
Upgrade gradio to 5.0.0 or later.
Yes, please upgrade to gradio>=5 to address this issue.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| gradio | PyPI | < 5.0.0 | 5.0.0 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- CriticalGradio Blocked Path ACL Bypass Vulnerabilitygradio
- CriticalGradio allows users to access arbitrary filesgradio
- CriticalGradio Exposure of Sensitive Information to an Unauthorized Actor vulnerabilitygradio
- CriticalFiles on the host computer can be accessed from the Gradio interfacegradio
- HighGradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacksgradio
- HighGradio contains a cookie injection vulnerabilitygradio
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.