Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Impact | The CVSS 3.1 score of 6.3 reflects a medium-severity vulnerability with low attack complexity and low privilege requirements (only authenticated users can exploit), though the impact is limited to partial confidentiality, integrity, and availability loss rather than complete system compromise. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L) indicates remote network exploitability without user interaction, but requires prior authentication. The 'E:P' (Proof-of-Concept Exists) and 'RL:X' (Remediation Level Unknown) ratings elevate practical risk since a public GitHub PoC is available and the vendor has not provided patches or guidance. From an SSVC perspective, this represents exploitable code with technical impact, but the authentication requirement limits automatable widespread exploitation. The real-world priority is moderate-to-high for organizations running vanna-ai in production with untrusted users having account access; however, this is not a critical zero-day threat for air-gapped or single-user deployments. |
| Exploit ScenarioDerived | An attacker with valid credentials to a vanna-ai deployment could craft a malicious input string targeting the exec function in the legacy module. For example, by submitting specially crafted SQL or prompt parameters, they could inject Python code that gets evaluated directly within the vanna process context. Since the attack vector is network-accessible and requires only low privileges (authenticated user), a disgruntled employee or account-compromised user could exploit this to read sensitive data, modify SQL queries before execution, or pivot to other systems. The publicly available PoC on GitHub significantly lowers the barrier for opportunistic attacks. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 21, 2026
A code injection vulnerability exists in vanna-ai vanna up to version 2.0.2, specifically in the exec function of the /src/vanna/legacy file. This authenticated remote code injection allows attackers with login credentials to execute arbitrary code with limited impact on confidentiality, integrity, and availability. A proof-of-concept exploit has been publicly disclosed on GitHub, and the vendor has not responded to early disclosure notifications, making this an active concern for deployed instances.
RemediationAI
Immediately upgrade vanna-ai vanna to a version newer than 2.0.2 if available from the vendor; however, since the vendor has not responded to disclosure and no official advisory exists, check the vanna GitHub repository or PyPI for the latest patched version. As an interim mitigation, restrict access to vanna deployments to trusted users only, disable or remove the legacy module if it is not required for your use case, implement network segmentation to limit lateral movement in case of code execution, and monitor for suspicious activity in vanna application logs. Consider implementing a Web Application Firewall (WAF) or input validation layer in front of vanna to detect injection attempts. Until a vendor patch is confirmed available, avoid deploying vanna-ai in environments where authentication alone cannot be trusted.
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
The vulnerability is rooted in CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), which describes unsafe handling of user input before passing it to dangerous functions. The vanna-ai vanna product (cpe:2.3:a:vanna-ai:vanna:*:*:*:*:*:*:*:*) is a Python-based AI framework for natural language to SQL processing. The exec function in the legacy module appears to dynamically execute code without proper input validation or sanitization, allowing attackers to inject malicious code that gets interpreted as executable Python. This is a classic injection vulnerability where user-controlled input reaches a dangerous function (exec) without neutralization.
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 security vulnerability has been detected in vanna-ai vanna up to 2.0.2. Affected is the function exec of the file /src/vanna/legacy. Such manipulation leads to injection. The attack can be executed remotely. The exploit has been disclosed publicly 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-4511, a 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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-14244
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB