CVE-2024-5827

published 28 Jun 2024 · updated 15 Oct 2025

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

10.0CriticalCVSS 9.8EPSS 3%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
vanna-ai<=latest

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-5827 severity on Zeptric[![CVE-2024-5827](https://zeptric.io/badge/cve/CVE-2024-5827.svg)](https://zeptric.io/cve/CVE-2024-5827)