Skip to main content

Vanna CVE-2026-4229

| EUVDEUVD-2026-12373 MEDIUM
SQL Injection (CWE-89)
2026-03-16 VulDB GHSA-6mj8-jmp2-g8q7
5.5
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted ID parameter to remove_training_data
  2. Exploit
    Inject SQL code into query string
  3. Execution
    Execute unauthorized database commands
  4. Impact
    Extract 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Mar 16, 2026 - 09:00 CVSS 7.3

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

vanna 2.0.0
vanna 2.0.1
vanna 2.0.2

Affected Packages

pypi vanna no fix

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

NVD PRIMARY 5.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
CVSS changed
Apr 29, 2026 - 01:11 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
Severity Changed
Apr 22, 2026 - 21:37 NVD
HIGH MEDIUM
CVSS changed
Apr 22, 2026 - 21:37 NVD
7.3 (HIGH) 6.9 (MEDIUM)
PoC Detected
Mar 16, 2026 - 14:53 vuln.today
Public exploit code
CVE Published
Mar 16, 2026 - 08:32 nvd
HIGH 7.3

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls
  1. 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

EPSS Score
0.0%
Top 92% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy