# CVE-2024-47166: One-level read path traversal in `/custom_component` in Gradio

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/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): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2024-10-10T21:36:43.000Z
- Modified: 2026-06-17T07:56:39.523Z
- Also known as: GHSA-37qc-qgx6-9xjv, PYSEC-2024-197
- 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 designed for quick prototyping. This vulnerability involves a **one-level read path traversal** in the `/custom_component` endpoint. Attackers can exploit this flaw to access and leak source code from custom Gradio components by manipulating the file path in the request. Although the traversal is limited to a single directory level, it could expose proprietary or sensitive code that developers intended to keep private. This impacts users who have developed custom Gradio components and are hosting them on publicly accessible servers. Users are advised to upgrade to `gradio>=4.44` to address this issue. As a workaround, developers can sanitize the file paths and ensure that components are not stored in publicly accessible directories.

(As written by CVE List.)

## Affected

- gradio-app gradio: < 4.44
- gradio (PyPI): before 4.44.0
- gradio_project gradio: before 4.44.0

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/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/U:Green`
- NVD: 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/gradio-app/gradio/security/advisories/GHSA-37qc-qgx6-9xjv> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47166> (advisory)
- <https://github.com/gradio-app/gradio> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-197.yaml> (web)

## Sources

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

---

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