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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | gradio | 5.5.0 | GHSA-rhm9-gp5p-5248 |
| PyPI | gradio | 5.5.0 | PYSEC-2024-275 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/gradio-app/gradio/security/advisories/GHSA-rhm9-gp5p-5248 x_refsource_CONFIRM