SQL Injection in vanna-ai/vanna
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- No fix listed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA. Impact type from CWE-89.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-7764
- 2026-10-03 Alias added: GHSA-7g3f-q846-q9hx
References
More vanna-ai vulnerabilities
- TI-2024-05403 Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna CVSS 3.0CRITICAL 9.8
- TI-2026-46836 Vanna 2.0.2 Path Traversal via FileSystemConversationStore CVSS 4.0HIGH 8.8
- TI-2024-05402 Remote Code Execution via Prompt Injection in vanna-ai/vanna CVSS 3.0CRITICAL 9.8
- TI-2024-07510 Server-Side Request Forgery (SSRF) in vanna-ai/vanna CVSS 3.0HIGH 8.3
- TI-2024-07469 Local File Read (LFI) by Prompt Injection via SnowFlake SQL in vanna-ai/vanna CVSS 3.0HIGH 7.5
- TI-2024-05342 Local File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vanna CVSS 3.0HIGH 7.5
Sources
- CVE-2024-7764 · CVE Program
- CVE-2024-7764 · NVD
- FIRST EPSS
- GHSA-7g3f-q846-q9hx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences