llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · gradio

GHSA-4Q3C-CJ7G-JCWF

Gradio has several components with post-process steps allow arbitrary file leaks

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -1 d de la divulgación
Exposición770 dDesde la divulgación, 10 oct 2024, 5:03 p. m.
Detección767 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 5.0.0
Monitoreo
Detectada
9 oct 24
10 oct 24
21 ene 25
17 nov 26
20 nov 26
9 oct 24
20 abr 25
30 oct 25
11 may 26
20 nov 26
FechaFaseEventoDetalle
Remediación Parche 5.0.0 gradio · -1 d desde divulgación
Divulgación Publicada GHSA-4Q3C-CJ7G-JCWF divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Impact
What kind of vulnerability is it? Who is impacted?

This is a data validation vulnerability affecting several Gradio components, which allows arbitrary file leaks through the post-processing step. Attackers can exploit these components by crafting requests that bypass expected input constraints. This issue could lead to sensitive files being exposed to unauthorized users, especially when combined with other vulnerabilities, such as issue TOB-GRADIO-15. The components most at risk are those that return or handle file data.

### Vulnerable Components:
1. String to FileData: DownloadButton, Audio, ImageEditor, Video, Model3D, File, UploadButton.
2. Complex data to FileData: Chatbot, MultimodalTextbox.
3. Direct file read in preprocess: Code.
4. Dictionary converted to FileData: ParamViewer, Dataset.

### Exploit Scenarios:
1. A developer creates a Dropdown list that passes values to a DownloadButton. An attacker bypasses the allowed inputs, sends an arbitrary file path (like `/etc/passwd`), and downloads sensitive files.
2. An attacker crafts a malicious payload in a ParamViewer component, leaking sensitive files from a server through the arbitrary file leak.

### Patches
Yes, the issue has been resolved in `gradio>5.0`. Upgrading to the latest version will mitigate this vulnerability.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
gradio< 5.0.0
5.0.0
6.32.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypigradio
Corregida 5.0.0 -1 d 6.32.0 no afectada
Versiones corregidas5.0.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-47868
Otrahttps://github.com/gradio-app/gradio/security/advisories/GHSA-4q3c-cj7g-jcwf
Otrahttps://github.com/gradio-app/gradio
Otrahttps://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-217.yaml

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.