Vulnerability · Published Apr 10, 2024 · Assigned by @huntr_ai

CVE-2024-1728Local File Inclusion in gradio-app/gradio

High 7.5

In plain English

A high-severity path traversal in gradio-app/gradio from gradio-app. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 85.4% (higher than 99.7% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)85.4%top 0.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Nuclei

Official description

gradio-app/gradio is vulnerable to a local file inclusion vulnerability due to improper validation of user-supplied input in the UploadButton component. Attackers can exploit this vulnerability to read arbitrary files on the filesystem, such as private SSH keys, by manipulating the file path in the request to the `/queue/join` endpoint. This issue could potentially lead to remote code execution. The vulnerability is present in the handling of file upload paths, allowing attackers to redirect file uploads to unintended locations on the server.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIgradio4.19.2GHSA-m842-4qm8-7gpq
PyPIgradio4.19.2PYSEC-2026-345

Affected products (as reported)

VendorProductVersions
gradio-app gradio-app/gradio unspecified – before 4.19.2

Weakness: CWE-22 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References