# CVE-2024-47868: Several components’ post-process steps may allow arbitrary file leaks in Gradio

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA: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): 1.11%, higher than 66% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-10T22:03:03.000Z
- Modified: 2026-06-17T07:57:53.107Z
- Also known as: GHSA-4q3c-cj7g-jcwf, PYSEC-2024-217
- Weaknesses: CWE-22, CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Gradio is an open-source Python package designed for quick prototyping. This is a **data validation vulnerability** affecting several Gradio components, which allows arbitrary file leaks through the post-processing step. Attackers can exploit these components by crafting requests that bypass expected input constraints. This issue could lead to sensitive files being exposed to unauthorized users, especially when combined with other vulnerabilities, such as issue TOB-GRADIO-15. The components most at risk are those that return or handle file data. Vulnerable Components: 1. **String to FileData:** DownloadButton, Audio, ImageEditor, Video, Model3D, File, UploadButton. 2. **Complex data to FileData:** Chatbot, MultimodalTextbox. 3. **Direct file read in preprocess:** Code. 4. **Dictionary converted to FileData:** ParamViewer, Dataset. Exploit Scenarios: 1. A developer creates a Dropdown list that passes values to a DownloadButton. An attacker bypasses the allowed inputs, sends an arbitrary file path (like `/etc/passwd`), and downloads sensitive files. 2. An attacker crafts a malicious payload in a ParamViewer component, leaking sensitive files from a server through the arbitrary file leak. This issue has been resolved in `gradio>5.0`. Upgrading to the latest version will mitigate this vulnerability. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- gradio-app gradio: < 5.0
- gradio (PyPI): before 5.0.0
- gradio_project gradio: before 5.0.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- 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-4q3c-cj7g-jcwf> (exploit, evidence, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47868> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-217.yaml> (web)

## Sources

- CVE List: [CVE-2024-47868](https://www.cve.org/CVERecord?id=CVE-2024-47868), CVE Terms of Use, modified 2024-10-11
- GitHub Advisory Database: [GHSA-4q3c-cj7g-jcwf](https://github.com/advisories/GHSA-4q3c-cj7g-jcwf), CC-BY-4.0, modified 2025-01-21
- NVD: [CVE-2024-47868](https://nvd.nist.gov/vuln/detail/CVE-2024-47868), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-217](https://osv.dev/vulnerability/PYSEC-2024-217), CC-BY-4.0, modified 2025-01-19

---

Page: https://cve.day/CVE-2024-47868 · Whole record: https://cve.day/CVE-2024-47868.json · Rebuilt by cve.day 2026-11-25T22:58:46.640Z
