CVE-2024-7764
published high CVSS 3.0 · 8.1SQL Injection in vanna-ai/vanna
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vanna-ai | — | vanna-ai/vannaunspecified through latest | Affected | Not stated | @huntr_ai |
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 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vanna-ai | vanna-ai/vanna | unspecified through latest (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
1Provider assertions
2@huntr_ai · cna
SQL Injection in vanna-ai/vanna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 88f5bfebb9abab7034e9226a2d68f0365085ae1bf6e0edcc7c4731cd9ecc0496
- Ingested
- 23 Sep 2026, 08:33:51 UTC
- Source record
- Official CVE record