{"id":"CVE-2024-7764","aliases":["CVE-2024-7764"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Injection in vanna-ai/vanna","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Vanna-ai v0.6.2 es vulnerable a la inyección de SQL debido a la protección insuficiente contra la inyección de comandos SQL adicionales provenientes de las solicitudes de usuario. La vulnerabilidad se produce cuando la función `generate_sql` llama a `extract_sql` con la respuesta LLM. Un atacante puede incluir un punto y coma entre un campo de datos de búsqueda y su propio comando, lo que provoca que la función `extract_sql` elimine todo el SQL generado por LLM y ejecute el comando del atacante si este pasa la función `is_sql_valid`. Esto permite la ejecución de SQL definido por el usuario más allá de los límites previstos, en particular del esquema entrenado.","source":"nvd"}],"published":"2025-03-20T10:11:35.662Z","modified":"2026-06-17T08:20:52.620Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"vanna-ai","product":"vanna-ai/vanna","source":"cvelist"}],"references":[{"url":"https://huntr.com/bounties/85d403b1-fbed-42e9-9ec1-2f79abf6eb0f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-03-20T13:43:19.044Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-7764","url":"https://www.cve.org/CVERecord?id=CVE-2024-7764","licence":"CVE Terms of Use","modified":"2025-03-20T13:43:43.656Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-7764","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7764","licence":"Public domain","modified":"2026-06-17T08:20:52.620Z"}],"updatedAt":"2026-11-25T22:58:52.381Z","epss":{"score":0.00784,"percentile":0.57274,"date":"2026-12-02T12:00:21.000Z"}}