{"id":"CVE-2024-7764","published":"2025-03-20T10:11:35Z","modified":"2025-03-20T13:43:43Z","title":"SQL Injection in vanna-ai/vanna","vendor":"vanna-ai","product":"vanna-ai/vanna","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00784,"percentile":0.56966,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://huntr.com/bounties/85d403b1-fbed-42e9-9ec1-2f79abf6eb0f","tags":[]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":11.39},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"vanna-ai","affectedVersions":[{"vendor":"vanna-ai","product":"vanna-ai/vanna","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-03-20T13:43:19.044296Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-6951","exploited":false,"provenance":"source"}}