# CVE-2021-43831: Files on the host computer can be accessed from the Gradio interface

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- 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): 3.84%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-15T19:50:10.000Z
- Modified: 2026-07-08T06:28:30.668Z
- Also known as: GHSA-rhq2-3vr9-6mcr, PYSEC-2021-873
- Weaknesses: CWE-22
- Assigned by: GitHub_M

## Description

Gradio is an open source framework for building interactive machine learning models and demos. In versions prior to 2.5.0 there is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces. File paths are not restricted and users who receive a Gradio link can access any files on the host computer if they know the file names or file paths. This is limited only by the host operating system. Paths are opened in read only mode. The problem has been patched in gradio 2.5.0.

(As written by CVE List.)

## Affected

- gradio-app gradio: < 2.5.0
- gradio (PyPI): before 2.5.0; before 41bd3645bdb616e1248b2167ca83636a2653f781
- gradio_project gradio: before 2.5.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 8.3 Critical `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr> (exploit, advisory, third-party-advisory, web)
- <https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43831> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2021-873.yaml> (web)

## Sources

- CVE List: [CVE-2021-43831](https://www.cve.org/CVERecord?id=CVE-2021-43831), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-rhq2-3vr9-6mcr](https://github.com/advisories/GHSA-rhq2-3vr9-6mcr), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-43831](https://nvd.nist.gov/vuln/detail/CVE-2021-43831), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-873](https://osv.dev/vulnerability/PYSEC-2021-873), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-43831 · Whole record: https://cve.day/CVE-2021-43831.json · Rebuilt by cve.day 2026-11-25T22:24:36.307Z
