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. |
| Impact | This vulnerability presents moderate-to-high real-world risk despite the 6.3 CVSS score, which reflects a Medium severity rating. The CVSS vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L) indicates network-accessible attack surface with low attack complexity and requirement for low privileges (authenticated user), making exploitation straightforward once an attacker gains basic access. The presence of a public, actively exploitable proof-of-concept (noted in exploit evidence status as E:P) significantly increases real-world exploitation probability. The RL:X (Release Level Unknown) and RC:R (Reasonable Confidence) vectors indicate incomplete patch information and reasonably confident vulnerability confirmation. Organizations should treat this as high priority because: (1) public exploits are available reducing barrier to attack, (2) authentication bypass is not required—only valid credentials, (3) SQL injection enables data exfiltration and potential lateral movement, and (4) vendor non-responsiveness means no official patch timeline exists. |
| Exploit ScenarioDerived | An authenticated user with credentials to a vanna deployment crafts a natural language query containing SQL injection payloads—for example, a query designed to extract sensitive data from backend databases or execute administrative commands. Since the ask function lacks input sanitization, the injected SQL is executed directly against the connected database backend. With low attack complexity and no user interaction required, an attacker can chain multiple queries to exfiltrate data, modify records, or potentially escalate privileges within the database system, all while leaving audit trails that appear to be legitimate application queries. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 21, 2026
SQL injection in vanna-ai vanna versions up to 2.0.2 allows authenticated remote attackers to manipulate the ask function in vanna/legacy/base/base.py, potentially enabling data exfiltration or modification. Public exploit code exists for this vulnerability, and no patch is currently available from the vendor despite early notification.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in vanna-ai vanna versions up to 2.0.2, specifically within the ask function of vanna/legacy/base/base.py, allowing authenticated attackers to manipulate database queries remotely. An attacker with valid credentials can inject arbitrary SQL commands to read, modify, or delete database contents. A public proof-of-concept exploit is available, and the vendor has not responded to early disclosure notification, making this an active risk for organizations using affected versions.
RemediationAI
Immediately upgrade vanna-ai vanna to version 2.0.3 or later if available from the project repository or PyPI package index; however, verify patch status given vendor non-responsiveness. If a patched version is unavailable, implement strict input validation and parameterized query enforcement at the application code level by modifying the ask function to use SQL parameterized queries (prepared statements) rather than string concatenation. As an interim control, restrict network access to vanna deployments using firewall rules and network segmentation to limit exposure to trusted internal networks only, and enforce strict role-based access controls to ensure only necessary users have credentials to authenticate to the system. Monitor the official vanna-ai GitHub repository and release notes for security updates, and consider forking the project to apply your own patches if vendor updates are not forthcoming.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Vanna-ai vanna is a text-to-SQL AI framework (identified by CPE cpe:2.3:a:vanna-ai:vanna:*:*:*:*:*:*:*:*) that translates natural language queries into SQL statements. The vulnerability is classified as CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), indicating that user input passed to the ask function is not properly sanitized or parameterized before being incorporated into SQL queries. This is a fundamental input validation flaw where the application concatenates or interpolates user-controlled data directly into SQL statements without using prepared statements or parameterized queries.
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:L/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 vulnerability was detected in vanna-ai vanna up to 2.0.2. Affected by this vulnerability is the function ask of the file vanna\legacy\base\base.py. Performing a manipulation results in sql injection. The attack is possible to be carried out remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
Organizations using vanna-ai vanna should be aware of moderate risk from CVE-2026-4513, a SQL injection vulnerability rated CVSS 6.3. Exploitation could allow attackers to execute code or inject malicious input. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
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 and Code Injection
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
SQL injection in Vanna AI's BigQuery integration (versions up to 2.0.2) allows unauthenticated remote attackers to manip
SQL injection in Vanna up to version 2.0.2 allows authenticated remote attackers to execute arbitrary SQL queries throug
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-14246
GHSA-jvhj-49gh-v77p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB