Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-4941— Local File Inclusion in JSON component in gradio-app/gradio

Quick assessment

Affected
gradio-app gradio-app/gradio
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Gradio是一个开源 Python 库,是通过友好的 Web 界面演示机器学习模型的方法。 Gradio 4.25 版本存在输入验证错误漏洞,该漏洞源于 postprocess 函数中输入验证不当,其中 path 字段可以通过 ../ 遍历路径。

AI Predicted 8.8 Difficulty: Easy EPSS 0.83% · P56

Possible ATT&CK Techniques 1 AI

T1083 · File and Directory Discovery
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-4941

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Local File Inclusion in JSON component in gradio-app/gradio
Source: CVE Program / CVE List V5
Vulnerability Description
A local file inclusion vulnerability exists in the JSON component of gradio-app/gradio version 4.25. The vulnerability arises from improper input validation in the `postprocess()` function within `gradio/components/json_component.py`, where a user-controlled string is parsed as JSON. If the parsed JSON object contains a `path` key, the specified file is moved to a temporary directory, making it possible to retrieve it later via the `/file=..` endpoint. This issue is due to the `processing_utils.move_files_to_cache()` function traversing any object passed to it, looking for a dictionary with a `path` key, and then copying the specified file to a temporary directory. The vulnerability can be exploited by an attacker to read files on the remote system, posing a significant security risk.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Gradio 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Gradio是一个开源 Python 库,是通过友好的 Web 界面演示机器学习模型的方法。 Gradio 4.25 版本存在输入验证错误漏洞,该漏洞源于 postprocess 函数中输入验证不当,其中 path 字段可以通过 ../ 遍历路径。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gradio-app gradio-app/gradio unspecified ~ 4.31.4 -

II. Public POCs for CVE-2024-4941

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-4941

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-4941 (1)

Vendor Advisories for CVE-2024-4941 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-4941

No comments yet


Leave a comment