Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna
No fixed version listed yet.Check the vendor advisory. References ↓
vanna-ai · vanna-ai/vanna
The vulnerability is an SQL injection flaw in the DuckDB integration of vanna-ai/vanna (vanna-ai vendor) version 0.3.4, reachable through its Flask web APIs. An unauthenticated remote attacker can submit malicious SQL training data and trigger generation of corresponding queries that write arbitrary files to the victim's file system, such as a PHP backdoor, which can lead to command execution.
Official description · CVE.org
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.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
First seen exploited 5 months after disclosure.
- Disclosedday 0
- First seen exploitedVulnCheck KEV evidence+5 mo
Affected versions and fixes
as published in the CVE recordvanna-ai vanna-ai/vanna
Affected: >= unspecified, <= latest