Gradio < 4.19.2 CSRF

medium Nessus Plugin ID 213711

Synopsis

The remote host is affected by a vulnerability.

Description

The version of Gradio installed on the remote host is prior to 4.19.2. It is, therefore, affected by a Cross-Site Request Forgery (CSRF) vulnerability in gradio-app/gradio which allows attackers to upload multiple large files to a victim's system if they are running Gradio locally. By crafting a malicious HTML page that triggers an unauthorized file upload to the victim's server, an attacker can deplete the system's disk space, potentially leading to a denial of service. This issue affects the file upload functionality as implemented in gradio/routes.py.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Gradio version 4.19.2 or later.

See Also

https://huntr.com/bounties/a94d55fb-0770-4cbe-9b20-97a978a2ffff

http://www.nessus.org/u?b5a77fac

Plugin Details

Severity: Medium

ID: 213711

File Name: gradio_CVE-2024-1727.nasl

Version: 1.1

Type: local

Published: 1/10/2025

Updated: 1/10/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 1.4

CVSS v2

Risk Factor: Medium

Base Score: 5

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

CVSS Score Source: CVE-2024-1727

CVSS v3

Risk Factor: Medium

Base Score: 4.3

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

Vulnerability Information

CPE: cpe:/a:gradio_project:gradio

Required KB Items: installed_sw/Gradio

Patch Publication Date: 3/21/2024

Vulnerability Publication Date: 3/21/2024

Reference Information

CVE: CVE-2024-1727

CWE: CWE-352