CVE-2024-7764: high-severity vulnerability in vanna-ai/vanna
SQL Injection in vanna-ai/vanna
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 8.1epss 0.8%
Vanna-ai v0.6.2 is vulnerable to SQL Injection due to insufficient protection against injecting additional SQL commands from user requests. The vulnerability occurs when the `generate_sql` function calls `extract_sql` with the LLM response. An attacker can include a semi-colon between a search data field and their own command, causing the `extract_sql` function to remove all LLM generated SQL and execute the attacker's command if it passes the `is_sql_valid` function. This allows the execution of user-defined SQL beyond the expected boundaries, notably the trained schema.
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Affected products
vanna-ai · vanna-ai/vannaRelated CVEs — vanna-ai/vanna
In the same product, most dangerous first.
CVE-2024-5827CRITICALArbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vannaEPSS 3.4%CVE-2024-5826CRITICALRemote Code Execution via Prompt Injection in vanna-ai/vannaEPSS 0.9%CVE-2024-8055HIGHLocal File Read (LFI) by Prompt Injection via SnowFlake SQL in vanna-ai/vannaEPSS 0.7%CVE-2024-5753HIGHLocal File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vannaEPSS 0.6%CVE-2024-8099HIGHServer-Side Request Forgery (SSRF) in vanna-ai/vannaEPSS 0.4%CVE-2024-6841MEDIUMCSRF in vanna-ai/vannaEPSS 0.2%