SCA: security update for gradio (GHSA-77xq-6g77-h274)

medium Tenable Cloud Security Plugin ID 411921

Description

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

- Gradio is an open-source Python package designed for quick prototyping. This vulnerability relates to the
**bypass of directory traversal checks** within the `is_in_or_equal` function. This function, intended to
check if a file resides within a given directory, can be bypassed with certain payloads that manipulate
file paths using `..` (parent directory) sequences. Attackers could potentially access restricted files if
they are able to exploit this flaw, although the difficulty is high. This primarily impacts users relying
on Gradio’s blocklist or directory access validation, particularly when handling file uploads. Users are
advised to upgrade to `gradio>=5.0` to address this issue. As a workaround, users can manually sanitize
and normalize file paths in their Gradio deployment before passing them to the `is_in_or_equal` function.
Ensuring that all file paths are properly resolved and absolute can help mitigate the bypass
vulnerabilities caused by the improper handling of `..` sequences or malformed paths. (CVE-2024-47164)

See Also

https://github.com/advisories/GHSA-77xq-6g77-h274

Plugin Details

Severity: Medium

ID: 411921

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/19/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 2.1

Percentile: 7.51

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

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

CVSS Score Source: CVE-2024-47164

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.7

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

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

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 2.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/10/2024

Vulnerability Publication Date: 10/10/2024

Reference Information

CVE: CVE-2024-47164

cwe: CWE-22