AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

GradioGHSA-g9cj-cfpp-4g2x

gradio vulnerable to Path Traversal

Gradio

CVE-2024-1561 · Published Apr 16, 2024 · updated Sep 10, 2026

High7.5
Fix: upgrade to 4.13.0 or later
GitHub advisory

An issue was discovered in gradio-app/gradio, where the /component_server endpoint improperly allows the invocation of any method on a Component class with attacker-controlled arguments. Specifically, by exploiting the move_resource_to_block_cache() method of the Block class, an attacker can copy any file on the filesystem to a temporary directory and subsequently retrieve it. This vulnerability enables unauthorized local file read access, posing a significant risk especially when the application is exposed to the internet via launch(share=True), thereby allowing remote attackers to read files on the host machine. Furthermore, gradio apps hosted on huggingface.co are also affected, potentially leading to the exposure of sensitive information such as API keys and credentials stored in environment variables.

Affected versions

PackageAffectedFixed in
gradio
PyPI
< 4.13.04.13.0
Details and references

More Gradio advisories

All Gradio