CVE-2023-51449 json
Make the `/file` secure against file traversal attacks
published 2y ago modified 2mo ago also EUVD-2023-0089 , GHSA-6qm2-wpxq-7qh2 , PYSEC-2023-249
- cvss
- 5.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 28.3%
- EPSS 28.3% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known
Summary
Gradio is an open-source Python package that allows you to quickly build a demo or web application for your machine learning model, API, or any arbitary Python function. Versions of `gradio` prior to 4.11.0 contained a vulnerability in the `/file` route which made them susceptible to file traversal attacks in which an attacker could access arbitrary files on a machine running a Gradio app with a public URL (e.g. if the demo was created with `share=True`, or on Hugging Face Spaces) if they knew the path of files to look for. This issue has been patched in version 4.11.0.
Patch / fix
- pypi gradio 4.11.0
- gradio_project gradio 4.11.0
Is CVE-2023-51449 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 FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-51449 updated cvss 5.6
gradio: directory traversal vulnerability in '/file' route
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
28.34% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | gradio | <4.11.0 |
4.11.0 |
Affected products
- gradio-app gradio
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/gradio-app/gradio/commit/1b9d4234d6c25ef250d882c7b90e1f4039ed2d76
web, patch
-
github.com
/gradio-app/gradio/commit/7ba8c5da45b004edd12c0460be9222f5b5f5f055
web, patch
-
github.com
/gradio-app/gradio/security/advisories/GHSA-6qm2-wpxq-7qh2
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-51449
advisory
-
github.com
/gradio-app/gradio
package
-
github.com
/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2023-249.yaml
web
Sources
- CVE List CVE-2023-51449
- GitHub Advisory GHSA-6qm2-wpxq-7qh2
- NVD CVE-2023-51449
- OSV PYSEC-2023-249
- Maintainer advisory GHSA-6qm2-wpxq-7qh2
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.