One-level read path traversal in `/custom_component` in Gradio
Published Oct 10, 2024
6.9
MEDIUMCVSS 4.0
EPSS 0.43%
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.
Affected products
-
- Version < 4.44StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Gradio-App | Gradio | n/a |
|
- < 4.44.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
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
2 other sources (GitHub, NVD) ▾
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
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
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Oct 11, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2024–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (5 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 0.43% (0.00432) | 35.32th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.42% (0.00421) | 33.41th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.10% (0.00098) | 24.95th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.05% (0.00047) | 19.55th | v3 (v2023.03.01) |
| Oct 11, 2024 | 0.04% (0.00044) | 11.22th | v3 (v2023.03.01) |
References (4)
- https://github.com/advisories/GHSA-37qc-qgx6-9xjv Advisory
- https://github.com/gradio-app/gradio/security/advisories/GHSA-37qc-qgx6-9xjv x_refsource_CONFIRMThird Party Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-197.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2024-47166
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-37qc-qgx6-9xjv | Advisory | |
| https://github.com/gradio-app/gradio/security/advisories/GHSA-37qc-qgx6-9xjv | x_refsource_CONFIRMThird Party Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-197.yaml | ||
| https://nvd.nist.gov/vuln/detail/CVE-2024-47166 |
Change history (0)
No recorded changes yet.