CVE-2024-1561
Arbitrary Local File Read via Component Method Invocation in gradio-app/gradio
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 4.13.0 | gradio · -102 d desde divulgación | |
| Divulgación | Publicada | CVE-2024-1561 divulgada · CVSS 7.5 (CNA) | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación PoC pública | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
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.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypigradio |
Corregida | 4.13.0 | -102 d | 6.32.0 no afectada |
4.13.0Arsenal público
Ver los 4 repositorios de GitHub
Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.
https://www.gradio.app/changelog#4-13-0https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-1561.yamlhttps://github.com/DiabloHTB/CVE-2024-1561https://github.com/DiabloHTB/Nuclei-Template-CVE-2024-1561https://github.com/ImYangC7/hdu-is-lab1https://github.com/WeiTao712/hdu-is-work1https://huntr.com/bounties/4acf584e-2fe8-490e-878d-2d9bf2698338https://github.com/gradio-app/gradio/commit/24a583688046867ca8b8b02959c441818bdb34a2Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
