CVE-2024-5827

Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna

State
Published
Severity
9.8 Critical
Published
Jun 28, 2024
Updated
Oct 15, 2025
Reserved
Jun 10, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.09.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H@huntr_ai

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

Affected Products

ProductVersions
vanna-ai/vannavanna-ai
  • latest and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.