CVE-2026-4229: SQL Injection in vanna-ai vanna
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.
AI Analysis
Technical Summary
CVE-2026-4229 identifies a SQL injection vulnerability in the vanna-ai vanna software, specifically affecting versions 2.0.0 through 2.0.2. The vulnerability resides in the remove_training_data function located in src/vanna/legacy/google/bigquery_vector.py. This function improperly sanitizes or validates the ID parameter, allowing an attacker to inject arbitrary SQL code remotely without requiring authentication or user interaction. The injection flaw can be exploited by sending crafted requests that manipulate the ID argument, potentially enabling attackers to execute unauthorized SQL queries against the underlying database. This can lead to unauthorized data access, modification, or deletion, impacting confidentiality, integrity, and availability of the system's data. The CVSS v4.0 base score is 6.9 (medium severity), reflecting the network attack vector, low complexity, no privileges or user interaction needed, and partial impact on confidentiality, integrity, and availability. The vendor was notified early but has not issued any patches or responses, and while an exploit has been published, no active exploitation has been reported. The absence of patches increases the urgency for organizations to implement alternative mitigations to protect their environments.
Potential Impact
The SQL injection vulnerability in vanna-ai vanna can have significant consequences for organizations relying on this software. Successful exploitation can lead to unauthorized disclosure of sensitive data, unauthorized modification or deletion of training data, and potential disruption of service availability. This can compromise the integrity of machine learning models or analytics relying on the training data, leading to incorrect outputs or decisions. Since the vulnerability is remotely exploitable without authentication, attackers can target exposed instances over the network, increasing the risk of widespread attacks. The lack of vendor response and patches further elevates the risk, as organizations must rely on their own defenses. Data breaches resulting from this vulnerability could lead to regulatory penalties, reputational damage, and operational disruptions, especially in sectors where data integrity and confidentiality are critical.
Mitigation Recommendations
Given the absence of official patches, organizations should implement immediate compensating controls. These include deploying web application firewalls (WAFs) with custom rules to detect and block SQL injection patterns targeting the remove_training_data function or the ID parameter. Network segmentation and restricting access to the vanna service to trusted IP addresses can reduce exposure. Monitoring and logging all requests to the vulnerable endpoint can help detect exploitation attempts early. If feasible, temporarily disabling or restricting the remove_training_data functionality until a patch is available can mitigate risk. Additionally, organizations should review and sanitize all inputs at the application level, applying strict validation and parameterization to prevent injection. Regularly updating threat intelligence feeds and monitoring for any emerging exploits or vendor patches is critical. Finally, consider isolating the database with least privilege access to limit the impact of any successful injection.
Affected Countries
United States, Germany, United Kingdom, Canada, Australia, France, Japan, South Korea, Netherlands, Sweden
CVE-2026-4229: SQL Injection in vanna-ai vanna
Description
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.
AI-Powered Analysis
Technical Analysis
CVE-2026-4229 identifies a SQL injection vulnerability in the vanna-ai vanna software, specifically affecting versions 2.0.0 through 2.0.2. The vulnerability resides in the remove_training_data function located in src/vanna/legacy/google/bigquery_vector.py. This function improperly sanitizes or validates the ID parameter, allowing an attacker to inject arbitrary SQL code remotely without requiring authentication or user interaction. The injection flaw can be exploited by sending crafted requests that manipulate the ID argument, potentially enabling attackers to execute unauthorized SQL queries against the underlying database. This can lead to unauthorized data access, modification, or deletion, impacting confidentiality, integrity, and availability of the system's data. The CVSS v4.0 base score is 6.9 (medium severity), reflecting the network attack vector, low complexity, no privileges or user interaction needed, and partial impact on confidentiality, integrity, and availability. The vendor was notified early but has not issued any patches or responses, and while an exploit has been published, no active exploitation has been reported. The absence of patches increases the urgency for organizations to implement alternative mitigations to protect their environments.
Potential Impact
The SQL injection vulnerability in vanna-ai vanna can have significant consequences for organizations relying on this software. Successful exploitation can lead to unauthorized disclosure of sensitive data, unauthorized modification or deletion of training data, and potential disruption of service availability. This can compromise the integrity of machine learning models or analytics relying on the training data, leading to incorrect outputs or decisions. Since the vulnerability is remotely exploitable without authentication, attackers can target exposed instances over the network, increasing the risk of widespread attacks. The lack of vendor response and patches further elevates the risk, as organizations must rely on their own defenses. Data breaches resulting from this vulnerability could lead to regulatory penalties, reputational damage, and operational disruptions, especially in sectors where data integrity and confidentiality are critical.
Mitigation Recommendations
Given the absence of official patches, organizations should implement immediate compensating controls. These include deploying web application firewalls (WAFs) with custom rules to detect and block SQL injection patterns targeting the remove_training_data function or the ID parameter. Network segmentation and restricting access to the vanna service to trusted IP addresses can reduce exposure. Monitoring and logging all requests to the vulnerable endpoint can help detect exploitation attempts early. If feasible, temporarily disabling or restricting the remove_training_data functionality until a patch is available can mitigate risk. Additionally, organizations should review and sanitize all inputs at the application level, applying strict validation and parameterization to prevent injection. Regularly updating threat intelligence feeds and monitoring for any emerging exploits or vendor patches is critical. Finally, consider isolating the database with least privilege access to limit the impact of any successful injection.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulDB
- Date Reserved
- 2026-03-15T18:45:03.703Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69b7c4789d4df451833a5b8b
Added to database: 3/16/2026, 8:51:04 AM
Last enriched: 3/16/2026, 9:05:26 AM
Last updated: 3/16/2026, 10:07:52 AM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.