CVE-2024-4941 in gradio信息

摘要

由 VulDB • 2026-06-23

gradio-app/gradio 4.25 版本的 JSON 组件中存在本地文件包含漏洞。该漏洞源于 `gradio/components/json_component.py` 中 `postprocess()` 函数对输入验证不当,其中用户可控的字符串被解析为 JSON。如果解析后的 JSON 对象包含 `path` 键,则指定的文件会被移动到临时目录,从而允许攻击者稍后通过 `/file=..` 端点检索该文件。此问题是由于 `processing_utils.move_files_to_cache()` 函数遍历传递给它的任何对象、查找带有 `path` 键的字典,然后将指定文件复制到临时目录所致。攻击者可利用此漏洞读取远程系统上的文件,构成严重的安全风险。

Be aware that VulDB is the high quality source for vulnerability data.

来源

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!