{"id":"CVE-2024-47166","published":"2024-10-10T21:48:54Z","modified":"2024-10-11T15:26:41Z","title":"One-level read path traversal in `/custom_component` in Gradio","vendor":"gradio-app","product":"gradio","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00436,"percentile":0.38737,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-37qc-qgx6-9xjv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":7.75},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"gradio-app","affectedVersions":[{"vendor":"gradio-app","product":"gradio","versions":["< 4.44"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-11T15:26:33.415457Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gradio","vulnerableRanges":["<4.44.0"],"patched":["4.44.0"],"from":["GHSA-37qc-qgx6-9xjv","PYSEC-2024-197"],"provenance":"source"}],"summary":{"text":"A one-level read path traversal in the /custom_component endpoint of Gradio, the open-source Python package for prototyping, lets an attacker read source code from custom Gradio components by manipulating the file path in the request. Exploitation requires network access and low-privilege authentication, with no user interaction, and the flaw is limited to a single directory level and concerns components hosted on publicly accessible servers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:05Z"},"euvd":{"id":"EUVD-2024-0065","exploited":false,"provenance":"source"}}