Vulnerability · Published Nov 4, 2024 · Assigned by mitre

CVE-2024-48052

Medium 6.5

In plain English

A medium-severity server-side request forgery in the gradio package (PyPI). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities).

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.5%top 59.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIgradiono fix listedGHSA-3gf9-wv65-gwh9
PyPIgradiono fix listedPYSEC-2026-1408

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

References