CVE-2024-5827
JSON

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 packageVersionsReported by
vanna-ai vanna-ai/vannafrom unspecified up to latestCVE List
vanna-ai vanna0.3.4CVE List

Classification

CWE-89

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

SourceRecordLicence
CVE ListCVE-2024-5827 changed 2025-10-15CVE Terms of Use
NVDCVE-2024-5827 changed 2026-06-17Public domain