Skip to content
MediumVulnerability

CVE-2024-47166: Gradio one-level read path traversal in /custom_component endpoint

Identifier
CVE-2024-47166
Published
Record updated
View JSON
Affected
  • gradio < 4.44.0
Fixed in
4.44.0
  • released September 10, 2024, 31 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

Gradio, an open-source Python package for quick prototyping, contains a one-level read path traversal in its `/custom_component` endpoint. An attacker who manipulates the file path in a request can read and leak source code from custom Gradio components hosted on publicly accessible servers, which may include proprietary or sensitive code.

Mitigation

Upgrade to `gradio>=4.44`. As a workaround, sanitize file paths and ensure components are not stored in publicly accessible directories.