Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-4941

7.5 · HIGH
Published Jun 6, 2024 gradio_project CWE-22 EPSS 0.83% (55th pctl)

Overview

CVE-2024-4941 is a high-severity vulnerability affecting gradio_project gradio. It was published on June 6, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

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

Remediation

Check the references section for vendor advisories and patches from gradio_project. Update gradio to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
gradio_project gradio >= 0, < 4.31.4 Affected

Frequently Asked Questions

What is CVE-2024-4941?

CVE-2024-4941 is a high-severity vulnerability affecting gradio_project gradio. It was published on June 6, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2024-4941?

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-4941?

Check the references section for vendor advisories and patches from gradio_project. Update gradio to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-4941?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-4941 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.