CVE-2024-48052: PYSEC-2026-1408 - gradio Server Side Request Forgery vulnerability

CVE-2024-48052 · Severity: low · CVSS 3.1 · Published 2026-07-07

Gradio is a popular Python library for building web interfaces for machine learning models. The DownloadButton component contains an SSRF vulnerability that allows an attacker to make the server request arbitrary URLs, including local resources, potentially exposing sensitive files or enabling access to internal services. This can lead to unauthorized data exposure or system compromise.

Technologies: gradio (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-48052 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-48052 being exploited in the wild.
How severe is CVE-2024-48052?
Low severity, with a CVSS score of 3.1, published 7 July 2026.
Which products and versions are affected?
gradio (PyPI) ECOSYSTEM:introduced=0,last_affected=4.42.0.
Is there a fix for CVE-2024-48052?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2024-48052 attacked?
It is attacked over the network.
Am I affected by CVE-2024-48052?
Check whether you run gradio (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A server-side request forgery (SSRF, CWE-918) vulnerability exists in Gradio's gr.DownloadButton function, specifically in the save_url_to_cache method. The vulnerability arises from a lack of URL validation/restrictions when processing URLs provided by users, allowing attackers to craft malicious requests that force the server to access local resources (e.g., file:// URLs, localhost services, or internal IP addresses). An authenticated user or someone with access to the application can trigger the vulnerability by providing a crafted URL to the DownloadButton. No patches are mentioned in the advisory; however, versions up to and including 4.42.0 are affected.

Affected products

  • Gradio Gradio <=4.42.0

Identifiers

  • CVE-2024-48052
  • GHSA-3gf9-wv65-gwh9
  • PYSEC-2026-1408

Timeline

  • 2024-11-04: disclosed: CVE-2024-48052 published to NVD
  • 2024-11-05: advisory: GHSA-3gf9-wv65-gwh9 published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.