CVE-2024-47166
LOW 2.3CVSS 4.0Gradio has a one-level read path traversal in `/custom_component`
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.
- Published
- 10 Oct 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-37qc-qgx6-9xjvPYSEC-2024-197
- Sources
- NVDJSONOSV GHSA-37qc-qgx6-9xjvJSONOSV PYSEC-2024-197JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gradio_project | gradiocpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* |
< 4.44.0 | 4.44.0 |
| OSV | PyPI | gradio | < 4.44.0 | 4.44.0 |
References
- https://github.com/gradio-app/gradio/security/advisories/GHSA-37qc-qgx6-9xjv · Third Party Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 10 Oct 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Oct 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Oct 2024)