CVE-2024-51751 json
Arbitrary file read with File and UploadButton components in Gradio
published 2y ago modified 4mo ago also EUVD-2024-3309 , GHSA-rhm9-gp5p-5248 , PYSEC-2024-275
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi gradio 5.5.0
- gradio_project gradio 5.5.0
Is CVE-2024-51751 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
0.68% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/gradio-app/gradio/security/advisories/GHSA-rhm9-gp5p-5248 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 0.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | gradio | >=5.0.0, <5.5.0 |
5.5.0 |
Affected products
- gradio-app gradio
- gradio_project gradio
Classification
References
-
github.com
/gradio-app/gradio/security/advisories/GHSA-rhm9-gp5p-5248
web, exploit, third-party-advisory, evidence, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-51751
advisory
-
github.com
/gradio-app/gradio
package
-
github.com
/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-275.yaml
web
Sources
- CVE List CVE-2024-51751
- GitHub Advisory GHSA-rhm9-gp5p-5248
- NVD CVE-2024-51751
- OSV PYSEC-2024-275
- Maintainer advisory GHSA-rhm9-gp5p-5248
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of gradio-app/gradio published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.