Vulnerability · Published Nov 6, 2024 · Assigned by GitHub_M

CVE-2024-51751Arbitrary file read with File and UploadButton components in Gradio

Medium 6.5

In plain English

A medium-severity path traversal in gradio from gradio-app. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.7%top 47.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Gradio is an open-source Python package designed to enable quick builds of a demo or web application. If File or UploadButton components are used as a part of Gradio application to preview file content, an attacker with access to the application might abuse these components to read arbitrary files from the application server. This issue has been addressed in release version 5.5.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIgradio5.5.0GHSA-rhm9-gp5p-5248
PyPIgradio5.5.0PYSEC-2024-275

Affected products (as reported)

VendorProductVersions
gradio-app gradio >= 5.0.0, < 5.5.0

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

References