INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-48052

gradio Server Side Request Forgery vulnerability

CVE-2024-48052 ยท 2024-11-05 moderate

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Server-side request forgery
Affected
gradio (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.5% chance of exploitation in 30 days

How it works, in short

The save_url_to_cache function fetches any supplied URL without restriction, letting an attacker make the server download local or internal resources. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.