CVE-2024-47166
published 2024-10-10CVE-2024-47166: Gradio is an open-source Python package designed for quick prototyping. This vulnerability involves a **one-level read path traversal** in the…
PriorityP430medium5.3CVSS 3.1
AVNACLPRNUINSUCLINAN
EPSS
0.42%
33.7th percentile
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
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gradio-app | gradio | < 4.44 | 4.44 |
| gradio_project | gradio | < 4.44.0 | 4.44.0 |
| gradio_project | gradio | >= 0 < 4.44.0 | 4.44.0 |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
nvdv4.02.3LOWCVSS: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
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Gradio has a one-level read path traversal in `/custom_component`
osv·2024-10-10
CVE-2024-47166 [MEDIUM] Gradio has a one-level read path traversal in `/custom_component`
Gradio has a one-level read path traversal in `/custom_component`
### Impact
**What kind of vulnerability is it? Who is impacted?**
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.
### Patches
Yes, please upgrade to `gradio>=4.44` to address this issue.
### Workarounds
**Is there a way for users to fix or remediate the vulnerability wit
GHSA
Gradio has a one-level read path traversal in `/custom_component`
ghsa·2024-10-10
CVE-2024-47166 [MEDIUM] CWE-22 Gradio has a one-level read path traversal in `/custom_component`
Gradio has a one-level read path traversal in `/custom_component`
### Impact
**What kind of vulnerability is it? Who is impacted?**
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.
### Patches
Yes, please upgrade to `gradio>=4.44` to address this issue.
### Workarounds
**Is there a way for users to fix or remediate the vulnerability wit
OSV
CVE-2024-47166: Gradio is an open-source Python package designed for quick prototyping
osv·2024-10-10
CVE-2024-47166 CVE-2024-47166: Gradio is an open-source Python package designed for quick prototyping
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-10-10
Published