GradioGHSA-3gf9-wv65-gwh9
gradio Server Side Request Forgery vulnerability
Medium6.5CVE-2024-48052 · Published Nov 5, 2024 · updated Sep 10, 2026
In gradio <=4.42.0, the gr.DownloadButton function has a hidden server-side request forgery (SSRF) vulnerability. The reason is that within the save_url_to_cache function, there are no restrictions on the URL, which allows access to local target resources. This can lead to the download of local resources and sensitive information.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| gradio PyPI | <= 4.42.0 | No fix yet |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-918
- Also known as
- CVE-2024-48052, PYSEC-2026-1408
More Gradio advisories
All Gradio| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Nov 62024 | Gradio vulnerable to arbitrary file read with File and UploadButton components | Medium0.0 | 5.5.0 |
| Oct 102024 | Gradio's dropdown component pre-process step does not limit the values to those in the dropdown list | Low5.3 | 5.0.0 |
| Oct 102024 | Gradio has an XSS on every Gradio server via upload of HTML files, JS files, or SVG files | Medium5.4 | 5.0.0 |
| Oct 102024 | Gradio uses insecure communication between the FRP client and server | High8.1 | 5.0.0 |
| Oct 102024 | Gradio has a race condition in update_root_in_config may redirect user traffic | High7.0 | 5.0.0 |
| Oct 102024 | Gradio performs a non-constant-time comparison when comparing hashes | Medium3.7 | 4.44.0 |