Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted ID parameter to remove_training_data
-
ExploitInject SQL code into query string
-
ExecutionExecute unauthorized database commands
-
ImpactExtract or modify data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions — remote unauthenticated exploitation against vanna-ai vanna versions up to 2.0.2 with the remove_training_data function accessible via network interface. |
| Impact | The CVSS 3.1 score of 7.3 (High) reflects the serious nature of SQL injection vulnerabilities, with network-based attack vector (AV:N), low complexity (AC:L), and no required privileges (PR:N) or user interaction (UI:N). The impact ratings show low confidentiality, integrity, and availability impact (C:L/I:L/A:L), suggesting limited scope within the BigQuery context. The exploit code maturity is marked as proof-of-concept (E:P), confirming active weaponization. While no EPSS score is provided and the vulnerability is not in CISA's KEV catalog, the combination of public exploit availability, remote exploitability without authentication, and vendor non-responsiveness makes this a priority for organizations using affected versions of Vanna with BigQuery integration. |
| Exploit ScenarioDerived | An attacker can remotely exploit this vulnerability by sending specially crafted requests to applications using the vulnerable Vanna library, injecting malicious SQL commands through the ID parameter in the remove_training_data function. Since no authentication is required and the attack complexity is low, attackers could potentially extract sensitive training data, modify or delete existing data, or execute arbitrary SQL commands within the BigQuery context. The public availability of exploit code significantly lowers the barrier for exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 16, 2026
SQL injection in Vanna AI's BigQuery integration (versions up to 2.0.2) allows unauthenticated remote attackers to manipulate the remove_training_data function through unsanitized ID parameters. Public exploit code exists for this vulnerability, and the vendor has not released a patch despite early notification. Successful exploitation enables attackers to read, modify, or delete database contents with limited impact on confidentiality, integrity, and availability.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in the remove_training_data function of vanna-ai's Vanna library up to version 2.0.2, specifically in the BigQuery vector implementation. The vulnerability allows remote attackers without authentication to inject arbitrary SQL commands through manipulation of the ID parameter, potentially leading to data disclosure, modification, or service disruption. A public proof-of-concept exploit is available and the vendor has not responded to disclosure attempts.
RemediationAI
Since the vendor has not responded to the vulnerability disclosure and no patch is currently available, organizations should immediately assess their exposure to this vulnerability. If using Vanna versions up to 2.0.2 with BigQuery integration, consider temporarily disabling the affected remove_training_data functionality or implementing input validation at the application layer to sanitize ID parameters before they reach the vulnerable function. Monitor the vendor's repository for security updates and consider switching to alternative SQL assistant tools if the vendor continues to be unresponsive. The proof-of-concept exploit code at https://gist.github.com/YLChen-007/b4f326eaecc29b192cf93dc5d6bc0623 can be used to test your systems for vulnerability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The Vanna library is an AI-powered SQL assistant that helps generate SQL queries from natural language. The vulnerability affects the BigQuery vector storage implementation in src/vanna/legacy/google/bigquery_vector.py, where the remove_training_data function fails to properly sanitize the ID parameter before constructing SQL queries. This is a classic SQL injection vulnerability (CWE-89) where user-controlled input is concatenated directly into SQL statements without proper parameterization or escaping. The affected product is identified by CPE cpe:2.3:a:vanna-ai:vanna:*:*:*:*:*:*:*:* for versions up to and including 2.0.2.
Know when Vanna gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
A flaw has been found in vanna-ai vanna up to 2.0.2. This impacts the function remove_training_data of the file src/vanna/legacy/google/bigquery_vector.py. This manipulation of the argument ID causes sql injection. The attack can be initiated remotely. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
A critical SQL injection vulnerability in Vanna AI's BigQuery implementation allows unauthenticated attackers to execute arbitrary database commands, potentially exposing sensitive data or disrupting analytics services. Any organization using Vanna library versions up to 2.0.2 faces immediate risk of unauthorized data access and manipulation without authentication barriers.
- Implement network segmentation to restrict access to Vanna instances to authorized networks only. 2) Deploy WAF rules filtering for SQL injection patterns in the remove_training_data endpoint. 3) Disable the remove_training_data function entirely if operationally feasible. 4) Enforce authentication and authorization controls at the application layer. 5) Monitor database query logs for anomalous SQL commands and unauthorized data access patterns. 6) Consider switching to alternative vector database implementations not affected by this vulnerability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Related Vulnerabilities in vanna-ai vanna SQL Injection Vulnerabilities
View all 2Arbitrary file write and unauthorized file read in Vanna (the open-source AI SQL agent) through version 2.0.2 allows una
Missing authentication in vanna-ai vanna Chat API endpoint (/api/vanna/v2/) allows unauthenticated remote attackers to p
Improper authorization in Vanna AI's Legacy Flask API allows remote unauthenticated attackers to bypass authentication c
Server-side request forgery in Vanna AI versions up to 2.0.2 allows unauthenticated remote attackers to manipulate the u
A code injection vulnerability exists in vanna-ai vanna up to version 2.0.2, specifically in the exec function of the /s
SQL injection in vanna-ai vanna versions up to 2.0.2 allows authenticated remote attackers to manipulate the ask functio
Cross-Origin Resource Sharing (CORS) misconfiguration in vanna-ai vanna up to version 2.0.2 allows authenticated remote
Deserialization vulnerability in vanna 2.0.0, 2.0.1 and 2.0.2 allows a locally-positioned attacker with low-level privil
EUVD-2026-12373
GHSA-6mj8-jmp2-g8q7
NVD
CVE.org
EPSS
VulDB
Exploit-DB