{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-7764","id":"CVE-2024-7764","title":"SQL Injection in vanna-ai/vanna","description":"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 ","descriptionLong":"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.","published":"2025-03-20T10:11:35.662Z","updated":"2026-06-17T08:20:52.620Z","reserved":"2024-08-13T18:24:14.074Z","status":"Deferred","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"@huntr_ai"},"metrics":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"@huntr_ai"},{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"huntr.dev"}],"rating":"high","products":["vanna-ai/vanna"],"affectedProducts":[{"vendor":"vanna-ai","product":"vanna-ai/vanna","defaultStatus":null,"versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}],"platforms":[]}],"packages":[],"cwes":["CWE-89"],"aliases":[],"references":[{"url":"https://huntr.com/bounties/85d403b1-fbed-42e9-9ec1-2f79abf6eb0f","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00784,"epssPercentile":0.56775,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-7764","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-7764","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-7764","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-7764","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}