SCA: security update for gradio (GHSA-6v6g-j5fq-hpvw)

high Tenable Self-Hosted Container Security Plugin ID 411623

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-4941)

See Also

https://github.com/advisories/GHSA-6v6g-j5fq-hpvw

Plugin Details

Severity: High

ID: 411623

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.51

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2024-4941

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/6/2024

Vulnerability Publication Date: 6/6/2024

Reference Information

CVE: CVE-2024-4941