Read the docs
TI-2024-07198 Aliases CVE-2024-7764GHSA-7g3f-q846-q9hx

SQL Injection in vanna-ai/vanna

Priority HIGH 70CWE-89Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00784 56th percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

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

VendorProductAffected versionsFixed inStatusSource
vanna-aivanna-ai/vannaup to latest—No fix listedCNA
  • vanna-ai/vanna Vendorvanna-ai Affected up to latest Fixed in — No fix listed CNA

Remediation

No fixed version listed by the sources yet.

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-7764
  2. 2026-10-03 Alias added: GHSA-7g3f-q846-q9hx

References

  • 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
See all 15 →

Sources