9.8critical
Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna
- Severity
- 9.8critical CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 5.24% (higher than 93% of CVEs)
- Published
- Last changed
- Assigned by
- @huntr_ai
Description
Vanna v0.3.4 is vulnerable to SQL injection in its DuckDB integration exposed to its Flask Web APIs. Attackers can inject malicious SQL training data and generate corresponding queries to write arbitrary files on the victim's file system, such as backdoor.php with contents `<?php system($_GET[0]); ?>`. This can lead to command execution or the creation of backdoors.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| vanna-ai vanna-ai/vanna | from unspecified up to latest | CVE List |
| vanna-ai vanna | 0.3.4 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
Vanna v0.3.4 is vulnerable to SQL injection in its DuckDB integration exposed to its Flask Web APIs. Attackers can inject malicious SQL training data and generate corresponding queries to write arbitrary files on the victim's file system, such as backdoor.php with contents `<?php system($_GET[0]); ?>`. This can lead to command execution or the creation of backdoors.
NVD (es)
Vanna v0.3.4 es vulnerable a la inyección SQL en su integración DuckDB expuesta a sus API web Flask. Los atacantes pueden inyectar datos de entrenamiento de SQL maliciosos y generar las consultas correspondientes para escribir archivos arbitrarios en el sistema de archivos de la víctima, como backdoor.php con contenido ``. Esto puede llevar a la ejecución de comandos o la creación de puertas traseras.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-5827 changed 2025-10-15 | CVE Terms of Use |
| NVD | CVE-2024-5827 changed 2026-06-17 | Public domain |