Path traversalin gradio-app gradio.
No public exploit found; not on exploited lists.
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.
- Upgrade gradio to 4.44 or later.
- Upgrade gradio (PyPI) to 4.44.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 19 Sep 2024CVE ID reserved by GitHub_M.
- 10 Oct 2024Published in the CVE List.
- 11 Oct 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other gradio vulnerabilities
Same weakness: Path traversal
- github.com x_refsource_CONFIRM
Patchminder. CVE-2024-47166: Path traversal in gradio-app gradio. https://patchminder.com/cve/cve-2024-47166/ (accessed 5 December 2026).