# CVE-2024-5827: Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.24%, higher than 93% of CVEs (2026-11-30)
- Published: 2024-06-28T19:27:33.049Z
- Modified: 2026-06-17T08:16:43.570Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- vanna-ai vanna-ai/vanna: from unspecified up to latest
- vanna-ai vanna: 0.3.4

## References

- <https://huntr.com/bounties/e4e64a51-618b-41d0-8f56-1d2146d8825e>

## Sources

- CVE List: [CVE-2024-5827](https://www.cve.org/CVERecord?id=CVE-2024-5827), CVE Terms of Use, modified 2025-10-15
- NVD: [CVE-2024-5827](https://nvd.nist.gov/vuln/detail/CVE-2024-5827), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-5827 · Whole record: https://cve.day/CVE-2024-5827.json · Rebuilt by cve.day 2026-11-25T22:58:42.326Z
