SQL Injection in Vanna-Ai Vanna-Ai/vanna

CVE-2024-5827

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.

Vulnerability class: SQL Injection

EPSS: 0.034 (87.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-5827?
CVE-2024-5827 is a critical-severity vulnerability in Vanna-Ai Vanna-Ai/vanna, classified under SQL Injection. CVSS score: 9.8/10. Published 2024-06-28.
How severe is CVE-2024-5827?
Critical severity. CVSS v3 base score is 9.8 out of 10.
Is CVE-2024-5827 known to be exploited?
3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.