Skip to content
OpenAdvisories
Critical · 9.8 Scanner template CVE-2024-5827 EUVD-2024-46973GHSA-c89v-fg7j-r5qj

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

Published Jun 28, 2024 · Updated Oct 15, 2025 · 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 products

VendorProductAffectedFixed
vanna-ai vanna-ai/vanna unspecified – ≤ latest —

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

References