Skip to content
Submit incident
AII-1002-47671
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

One-level read path traversal in `/custom_component` in Gradio (CVE-2024-47166)

A one-level read path traversal vulnerability in Gradio's `/custom_component` endpoint allows attackers to access and leak source code from custom Gradio components by manipulating file paths. The flaw affects Gradio versions before 4.44 and impacts developers hosting custom components on publicly accessible servers.

10 October 2024 Β· Gradio Β· Security and cyberattacks
10 October 2024
AII-1002-476712 sources ↓
Quick facts
Organization
Gradio (subject)
Category
Security and cyberattacks
Source
github.com
Date
10 October 2024
Drafted by
Raidu Incident Detection

What happened

A one-level read path traversal vulnerability was identified in the /custom_component endpoint of Gradio. Attackers can exploit this flaw by manipulating the file path in requests to access and leak source code from custom Gradio components.

Reported impact

The vulnerability impacts developers who have created custom Gradio components and are hosting them on publicly accessible servers. Proprietary or sensitive code that developers intended to keep private could be exposed.

Index analysis

The vulnerability is classified as low severity and is limited to a single directory level of path traversal.

Governance controls

Gradio released a patched version 4.44 to address the issue. Developers can mitigate the vulnerability without upgrading by sanitizing file paths and ensuring components are not stored in publicly accessible directories.

Classification

Organization
Gradio (subject)
Category
Security and cyberattacks
Industry
IT infrastructure and hosting
Harm status
Potential harm
Intent
Unintentional
Timing
Post-deployment
Harmed
Business
Failure modes
Data leak
AI systems
Gradio

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

github.com
https://github.com/gradio-app/gradio/security/advisories/GHSA-37qc-qgx6-9xjv
cve.org
NVD entry