# CVE-2023-51449: Make the `/file` secure against file traversal attacks

- Severity: Medium 5.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 28.3%, higher than 98% of CVEs (2026-12-01)
- Published: 2023-12-21T18:24:28.000Z
- Modified: 2026-09-10T03:49:59.568Z
- Also known as: GHSA-6qm2-wpxq-7qh2, PYSEC-2023-249
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- gradio-app gradio: < 4.11.0
- gradio (PyPI): before 4.11.0; before 1b9d4234d6c25ef250d882c7b90e1f4039ed2d76; before 7ba8c5da45b004edd12c0460be9222f5b5f5f055
- gradio_project gradio: before 4.11.0

## Every score

- GitHub_M: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-6qm2-wpxq-7qh2> (advisory, third-party-advisory, web)
- <https://github.com/gradio-app/gradio/commit/1b9d4234d6c25ef250d882c7b90e1f4039ed2d76> (fix, patch, web)
- <https://github.com/gradio-app/gradio/commit/7ba8c5da45b004edd12c0460be9222f5b5f5f055> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-51449> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2023-249.yaml> (web)

## Sources

- CVE List: [CVE-2023-51449](https://www.cve.org/CVERecord?id=CVE-2023-51449), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-6qm2-wpxq-7qh2](https://github.com/advisories/GHSA-6qm2-wpxq-7qh2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-51449](https://nvd.nist.gov/vuln/detail/CVE-2023-51449), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-249](https://osv.dev/vulnerability/PYSEC-2023-249), CC-BY-4.0, modified 2024-01-17

---

Page: https://cve.day/CVE-2023-51449 · Whole record: https://cve.day/CVE-2023-51449.json · Rebuilt by cve.day 2026-11-25T22:58:31.644Z
