Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthorized client invokes bigquery-forecast tool
-
DeliverySupply crafted timestamp_col parameter
-
ExploitBreak out of string literal in AI.FORECAST query
-
ExecutionBypass allowedDatasets validation
-
ImpactRead arbitrary cross-dataset BigQuery tables
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 | Exploitation requires that the target deployment (1) runs Google MCP Toolbox for Databases with the prebuilt BigQuery forecasting tool (bigquery-forecast) enabled and backed by a BigQuery source, (2) relies on the allowedDatasets mechanism to restrict which datasets clients may query, and (3) grants the attacker the ability to invoke that tool and control its data_col, timestamp_col, or id_cols parameters - consistent with PR:L, this is an authenticated/authorized low-privilege client, not an anonymous internet attacker. The attack succeeds because allowedDatasets validates only the history_data parameter and the final assembled query is executed without re-validation. Limiting factors: it is inert if the forecasting tool is not exposed, if allowedDatasets is not the trust boundary, or if the backing service account's IAM already restricts dataset access; the underlying service-account permissions cap how much data the injected query can actually reach. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N, base 8.6) indicates a network-reachable, low-complexity attack requiring only low privileges (a legitimate MCP client able to invoke the tool) and no user interaction. No EPSS score, KEV listing, or SSVC decision data was provided, and no public exploit is identified at time of analysis, so this is not evidence of active or widespread exploitation - the priority rests on the strength of the primitive, not on observed attacks. The main uncertainty is impact scope: the description centers on reading arbitrary tables (confidentiality), while the provided vector also asserts high integrity impact (VI:H); BigQuery does not support classic stacked/multi-statement DML the way some engines do, so the realistic integrity impact of the injection is unclear and should be verified against the specific AI.FORECAST query context. Overall this is a genuine authorization-bypass/data-exposure issue for anyone running the BigQuery forecasting tool with allowedDatasets as their trust boundary, but exposure is bounded by requiring an authorized (PR:L) client and by the product's relatively limited deployment footprint. |
| Exploit ScenarioDerived | An authorized but low-privileged agent/MCP client invokes the bigquery-forecast tool and sets a column parameter such as timestamp_col to a crafted value that closes the intended string literal and appends attacker-chosen SQL referencing a dataset outside the operator's allowedDatasets list. Because the allowedDatasets check only inspects history_data and not the final AI.FORECAST query, the injected clause executes and returns rows from tables the client should not be able to read. No public proof-of-concept is identified at time of analysis, and the low attack complexity (AC:L) means a valid client parameter is sufficient to trigger it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 21, 2026
SQL injection and security-boundary bypass in Google's MCP Toolbox for Databases (googleapis/mcp-toolbox) lets a low-privileged MCP client abuse the prebuilt BigQuery forecasting tool (bigquery-forecast) to read arbitrary BigQuery tables. The tool interpolates client-supplied column parameters (data_col, timestamp_col, id_cols) unescaped into a generated AI.FORECAST SELECT statement, and the operator-configured allowedDatasets guard only validates the history_data parameter - not the final assembled query - so an attacker breaks out of a string literal to reach datasets that should be off-limits. There is no public exploit identified at time of analysis; risk derives from the injection primitive plus the confidentiality impact of cross-dataset reads.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply the changes from https://github.com/googleapis/mcp-toolbox/pull/3324, which introduce quote-escaping for the column/metric parameters and, critically, move the allowedDatasets validation to a dry-run of the fully assembled query so referenced tables are re-checked before execution; upgrade to the first tagged release that includes this PR once published. As compensating controls until you can upgrade: disable or unregister the BigQuery forecasting tool (bigquery-forecast) from the toolset if it is not needed; do not treat allowedDatasets as a hard security boundary for this tool and instead enforce dataset isolation at the IAM/service-account layer by granting the MCP Toolbox service account read access only to the specific datasets it legitimately needs (accepting that this narrows what any tool can query); and restrict which clients/identities may reach the MCP endpoint. Each of these reduces functionality - removing the tool eliminates forecasting, and tightening IAM may break other tools that legitimately query broader datasets - so scope them to the forecasting workflow.
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
MCP Toolbox for Databases is a Google open-source server that exposes database operations to LLM/agent clients through the Model Context Protocol. The affected tool builds a BigQuery AI.FORECAST table-valued function query by concatenating user-controlled identifiers via fmt.Sprintf without escaping, which is the classic CWE-89 (improper neutralization of SQL elements) failure applied to identifier/string-literal fields. It is compounded by CWE-863 (incorrect authorization): the allowedDatasets control is a validation applied to one input (history_data) rather than to the effective query, so the authorization check and the executed statement diverge. The linked PR #3324 shows the remediation pattern - replacing NewStringParameter with NewStringParameterWithEscape ('single-quotes' escaping), swapping ValidColumnName/ContainsRune checks for stricter ValidColumnParam/ValidContributionMetricParam validators, and moving the allowedDatasets dry-run check so it validates the fully assembled query (dryRunJob.ReferencedTables) rather than a single raw parameter.
Know when Mcp Toolbox For Databases Googleapis Mcp Toolbox 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:H/VI:H/VA:N/SC:N/SI:N/SA:N
Authorized low-privilege client controls tool parameters (PR:L) over the network with low complexity; primary impact is unauthorized cross-dataset reads (C:H), with limited/uncertain integrity impact (I:L) and no availability effect.
Primary rating from Vendor (Google).
CVSS VectorVendor: Google
DescriptionCVE.org
A SQL injection (CWE-89) and security boundary bypass (CWE-863) vulnerability exists in the prebuilt BigQuery forecasting tool (bigquery-forecast) of googleapis/mcp-toolbox.
The tool accepts client-controlled parameters (data_col, timestamp_col, and id_cols) as plain strings and interpolates them unescaped via fmt.Sprintf directly into a generated AI.FORECAST table-valued SELECT statement. While MCP Toolbox utilizes an allowedDatasets mechanism to restrict queries, this defense only validates the history_data parameter; the final assembled query is executed without re-validation.
An attacker can break out of the string literal fields (such as timestamp_col) to inject a valid multi-statement or cross-dataset query block. This allows an unauthorized user to bypass the operator-configured allowedDatasets boundary and read arbitrary BigQuery tables.
Executive ViewAI
Google's MCP Toolbox for Databases (bigquery-forecast component) contains a SQL injection vulnerability allowing authenticated users to circumvent dataset access controls and read arbitrary BigQuery tables. Organizations using this tool risk unauthorized exposure of sensitive data stored in their data warehouse, with potential regulatory and compliance implications. Immediate remediation actions are required pending vendor patch availability.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable the bigquery-forecast tool until patched; (2) Restrict BigQuery service account IAM permissions to read-only access on an explicitly whitelisted set of required datasets; (3) Enable query audit logging and implement monitoring for unusual cross-dataset access patterns; (4) Implement network-level segmentation to restrict MCP client connectivity; (5) Conduct forensic analysis of BigQuery query logs spanning the discovery date backward to determine if exploitation occurred.
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.
Authentication bypass in googleapis/mcp-toolbox allows remote unauthenticated attackers to gain access by presenting opa
Authentication bypass in googleapis/mcp-toolbox lets remote unauthenticated attackers reach protected tools and backing
Unauthenticated path traversal combined with missing authorization in the cloud-storage source of Google MCP Toolbox for
Authorization bypass in Google's MCP Toolbox for Databases (googleapis/mcp-toolbox) allows authenticated low-privilege c
EUVD-2026-46317
GHSA-wvx3-gvxv-cmxc
NVD
CVE.org
EPSS
VulDB
Exploit-DB