CVE-2024-5827
published critical CVSS 3.0 · 9.8Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vanna-ai | vanna-ai/vanna | unspecified through latest (affected · custom) | @huntr_ai · cna |
| vanna-ai | vanna | 0.3.4 (affected)Default: affected | CISA-ADP · adp |
Weaknesses
1- CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
1Provider assertions
3@huntr_ai · cna
Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- bec042357cccc12838c5eabb217923772b6301498d4e8b9877bebf585ca36388
- Ingested
- 23 Sep 2026, 08:32:47 UTC
- Source record
- Official CVE record