CVE-2026-15829

SQL Injection and Security Boundary Bypass in googleapis/mcp-toolbox

Published Jul 21, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The MCP Toolbox for Databases’ BigQuery forecasting tool builds queries by inserting client‑supplied column names directly into a formatted SQL string. This permits SQL injection (CWE‑89) and, because the tool validates only a single parameter, it also bypasses the allowedDatasets security boundary (CWE‑863). An attacker can terminate the intended string literal and inject arbitrary DML or cross‑dataset SELECT statements, thereby reading any BigQuery table for which they have permissions beyond those intended by the allowedDatasets policy.

Affected Systems

The affected product is Google’s MCP Toolbox for Databases, specifically the BigQuery forecasting command known as bigquery‑forecast. No specific version constraints are listed, meaning all releases that include the bigquery‑forecast tool are potentially impacted unless patched.

Risk and Exploitability

The CVSS score of 8.6 indicates that, if exploited, the attacker can cause a significant breach of confidentiality by exfiltrating data. The EPSS score of less than 1% suggests that the likelihood of an immediate exploit is low, and the vulnerability is not listed in the CISA KEV catalog, which reduces the chance of a known active exploit. However, because the attack vector relies on normal user input, an attacker who can craft requests to the forecast API can bypass the intended dataset restrictions and read arbitrary BigQuery tables with the permissions of the user or service account that runs the tool.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a patched version of Google MCP Toolbox that validates all client‑supplied identifiers against the allowedDatasets rule before query construction.
  • Restrict the IAM roles granted to users or service accounts that invoke bigquery‑forecast so that they only possess read access to the datasets required for forecasting.
  • Implement an input‑validation layer that rejects requests containing potentially malicious characters (e.g., semicolons, quotes, newline) in the data_col, timestamp_col, or id_cols parameters.

Generated by OpenCVE AI on July 30, 2026 at 17:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:google:mcp_toolbox_for_databases:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
First Time appeared Google
Google mcp Toolbox For Databases
Vendors & Products Google
Google mcp Toolbox For Databases
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title SQL Injection and Security Boundary Bypass in googleapis/mcp-toolbox
Weaknesses CWE-863
CWE-89
References
Metrics cvssV4_0

{'score': 8.6, 'vector': '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'}

Weaknesses
  • CWE-863

    Incorrect Authorization

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
Google
Published
Updated
Jul 22, 2026, 6:49 PM
Reserved
Jul 15, 2026, 3:00 PM
Status
Analyzed
Published
Jul 21, 2026, 5:17 PM
Modified
Oct 24, 2026, 7:10 PM