Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vanna-ai | vanna-ai/vanna | up to latest | — | No fix listed | CNA |
- vanna-ai/vanna Vendorvanna-ai Affected up to latest Fixed in — No fix listed CNA
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vanna-ai:vanna:0.3.4:*:*:*:*:*:*:* | 0.3.4 | — | — |
- cpe:2.3:a:vanna-ai:vanna:0.3.4:*:*:*:*:*:*:* Versions 0.3.4 — ·—
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-5827
- 2026-10-03 Alias added: GHSA-c89v-fg7j-r5qj
References
More vanna-ai vulnerabilities
- TI-2026-46836 Vanna 2.0.2 Path Traversal via FileSystemConversationStore CVSS 4.0HIGH 8.8
- TI-2024-05402 Remote Code Execution via Prompt Injection in vanna-ai/vanna CVSS 3.0CRITICAL 9.8
- TI-2024-07510 Server-Side Request Forgery (SSRF) in vanna-ai/vanna CVSS 3.0HIGH 8.3
- TI-2024-07469 Local File Read (LFI) by Prompt Injection via SnowFlake SQL in vanna-ai/vanna CVSS 3.0HIGH 7.5
- TI-2024-05342 Local File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vanna CVSS 3.0HIGH 7.5
- TI-2026-06105 vanna-ai vanna Legacy Flask API improper authorization CVSS 4.0MEDIUM 6.9
Sources
- CVE-2024-5827 · CVE Program
- CVE-2024-5827 · NVD
- FIRST EPSS
- GHSA-c89v-fg7j-r5qj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences