CVE-2024-51751
published medium CVSS 3.1 · 6.5Arbitrary file read with File and UploadButton components in Gradio
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gradio-app | gradio | >= 5.0.0, < 5.5.0 (affected) | GitHub_M · cna |
| gradio_project | gradio | 5.0.0 to < 5.5.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
1Provider assertions
2GitHub_M · cna
Arbitrary file read with File and UploadButton components in Gradio
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 979a824b4693c59083be4c0111cc94cf5539ead0eafd5b2c088a0bac95c984b1
- Ingested
- 23 Sep 2026, 08:30:23 UTC
- Source record
- Official CVE record