SCA: security update for gradio (GHSA-r364-m2j9-mf4h)

medium Tenable Self-Hosted Container Security Plugin ID 418449

Description

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

- An SSRF vulnerability exists in the gradio-app/gradio due to insufficient validation of user-supplied URLs
in the `/proxy` route. Attackers can exploit this vulnerability by manipulating the `self.replica_urls`
set through the `X-Direct-Url` header in requests to the `/` and `/config` routes, allowing the addition
of arbitrary URLs for proxying. This flaw enables unauthorized proxying of requests and potential access
to internal endpoints within the Hugging Face space. The issue arises from the application's inadequate
checking of safe URLs in the `build_proxy_request` function. (CVE-2024-2206)

See Also

https://github.com/advisories/GHSA-r364-m2j9-mf4h

Plugin Details

Severity: Medium

ID: 418449

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 6/1/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 2.1

Percentile: 7.52

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5

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

CVSS Score Source: CVE-2024-2206

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.9

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:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/27/2024

Vulnerability Publication Date: 3/27/2024

Reference Information

CVE: CVE-2024-2206

cwe: CWE-918