CVE-2024-5827

Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna

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.

Category

9.8
CVSS
Severity: Critical
CVSS 3.0 •
EPSS 46.23% Top 5%
Affected: vanna-ai vanna-ai/vanna
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-5827?
CVE-2024-5827 has been scored as a critical severity vulnerability.
How to fix CVE-2024-5827?
To fix CVE-2024-5827, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-5827 being actively exploited in the wild?
It is possible that CVE-2024-5827 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~46% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-5827?
CVE-2024-5827 affects vanna-ai vanna-ai/vanna.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.