{"cve":"CVE-2024-1561","nvd":{"published":"2024-04-16T00:15:08.887","modified":"2026-06-17T07:04:30.440","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-29"],"references":["https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2","https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338","https://www.gradio.app/changelog#4-13-0","https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2","https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338"],"products":["gradio_project:gradio"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-1561","score":0.09314,"percentile":0.95375,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-g9cj-cfpp-4g2x","url":"https://osv.dev/vulnerability/GHSA-g9cj-cfpp-4g2x","summary":"gradio vulnerable to Path Traversal","modified":"2026-09-10T03:50:11.297187272Z","packages":[{"ecosystem":"PyPI","name":"gradio","purl":"pkg:pypi/gradio","ranges":["<4.13.0"],"fixed":["4.13.0"]}]},{"id":"PYSEC-2026-1415","url":"https://osv.dev/vulnerability/PYSEC-2026-1415","summary":"gradio vulnerable to Path Traversal","modified":"2026-07-07T17:47:40.282871303Z","packages":[{"ecosystem":"PyPI","name":"gradio","purl":"pkg:pypi/gradio","ranges":["<4.13.0"],"fixed":["4.13.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}