Skip to main content

Python CVE-2026-33980

| EUVDEUVD-2026-16878 HIGH
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-03-27 https://github.com/pab1it0/adx-mcp-server GHSA-vphc-468g-8rfp
8.3
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker injects KQL payload into table_name parameter
  2. Exploit
    MCP server interpolates unsanitized input into f-string query
  3. Execution
    Arbitrary KQL executes against Azure Data Explorer
  4. Impact
    Attacker reads sensitive data or modifies database

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Requires authenticated access to adx-mcp-server (commit 48b2933 or earlier) with privileges to invoke MCP tools get_table_schema, sample_table_data, or get_table_details. Attacker supplies malicious table_name parameter containing KQL injection payload. No user interaction required.

Impact

Real-world risk is HIGH despite the 8.3 CVSS score requiring authentication (PR:L). The CVSS vector indicates network-accessible (AV:N), low complexity (AC:L), no user interaction (UI:N), and high confidentiality/integrity impact (C:H/I:H) with low availability impact (A:L). The authentication requirement moderately reduces risk, as attackers need valid credentials to the MCP server or must compromise an AI agent with access. However, the prompt injection attack vector described in the advisory is particularly concerning - malicious actors can manipulate AI agent prompts to trigger these tools with injected payloads, effectively weaponizing the AI itself. The proof-of-concept demonstrates trivial exploitation using comment-based SQL injection techniques adapted to KQL syntax. The ability to execute management commands like .drop table poses data destruction risks beyond typical injection vulnerabilities. Patch availability mitigates immediate risk for organizations that can update promptly, but the niche nature of MCP servers may result in slow patch adoption. The Python package ecosystem context (PyPI distribution) creates supply chain exposure if dependencies pull vulnerable versions. No CISA KEV listing or EPSS data provided, suggesting limited observed exploitation in enterprise environments, but the AI agent attack vector represents an emerging threat class that traditional exploitation metrics may not capture adequately.

Exploit ScenarioDerived

An attacker with valid credentials to an MCP-enabled AI assistant triggers the get_table_schema tool by submitting a prompt like 'Show me the schema for sensitive_data | project APIKey, CustomerPII | take 1000 //'. The AI agent, interpreting this as a legitimate schema request, invokes the get_table_schema tool with the injected table_name parameter. The server constructs the KQL query 'sensitive_data | project APIKey, CustomerPII | take 1000 // | getschema', where the double-slash comments out the intended getschema operator. The Azure Data Explorer cluster executes the attacker's arbitrary query, returning sensitive API keys and customer PII instead of schema metadata. Alternatively, an attacker uses get_table_details with a newline-injected payload to execute '.drop table audit_logs', destroying forensic evidence. The proof-of-concept code in the security advisory demonstrates both data exfiltration and destructive command execution patterns.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 27, 2026

KQL injection in adx-mcp-server Python package allows authenticated attackers to execute arbitrary Kusto queries against Azure Data Explorer clusters. Three MCP tool handlers (get_table_schema, sample_table_data, get_table_details) unsafely interpolate the table_name parameter into query strings via f-strings, enabling data exfiltration from arbitrary tables, execution of management commands, and potential table drops. Vendor-released patch available (commit 0abe0ee). No public exploit identified at time of analysis, though proof-of-concept code exists in the security advisory demonstrating injection via comment-based bypass and newline-separated commands. Affects adx-mcp-server ≤ commit 48b2933.

RemediationAI

Upgrade adx-mcp-server to the patched version containing commit 0abe0ee55279e111281076393e5e966335fffd30 or later, available from the GitHub repository. The patch implements proper input validation and parameterization for table_name parameters to prevent KQL injection. Installation instructions and patched code are available at https://github.com/pab1it0/adx-mcp-server/commit/0abe0ee55279e111281076393e5e966335fffd30. Review the GitHub Security Advisory GHSA-vphc-468g-8rfp at https://github.com/pab1it0/adx-mcp-server/security/advisories/GHSA-vphc-468g-8rfp for complete remediation guidance. As an interim mitigation if immediate patching is not feasible, implement allowlisting of valid table names at the application layer before invoking MCP tools, restrict Azure Data Explorer permissions for the service account to read-only access on necessary tables only, and audit MCP tool invocation logs for suspicious table_name patterns containing pipe symbols, comment markers, or newline characters. Organizations using AI agents with this MCP server should review agent prompt engineering to minimize prompt injection risks that could trigger malicious tool calls.

Affected VersionsENISA

adx-mcp-server ≤ 1.1.0

Affected Packages

pypi adx-mcp-server no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in a Model Context Protocol (MCP) server implementation that provides AI agents with tools to query Azure Data Explorer (Kusto) databases. MCP is an emerging protocol allowing AI assistants to interact with external data sources through defined tool interfaces. The affected package constructs Kusto Query Language (KQL) statements using Python f-string interpolation without input validation. KQL, Microsoft's query language for Azure Data Explorer, supports operator chaining via pipe (|) symbols and management commands prefixed with periods (.). The vulnerability class is CWE-943 (Improper Neutralization of Special Elements in Data Query Logic), specifically a NoSQL injection variant. The tools were designed as metadata inspection utilities but accept arbitrary user input that becomes executable code. The trust boundary issue is particularly critical because MCP clients may auto-approve 'safe' metadata tools while requiring confirmation for the execute_query tool, allowing the injection to bypass security controls that users expect to protect against arbitrary query execution.

Know when Python 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

GitHub Advisory PRIMARY 8.3 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch released
Mar 27, 2026 - 19:30 nvd
Patch available
CVE Published
Mar 27, 2026 - 19:08 nvd
HIGH 8.3

DescriptionGitHub Advisory

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):

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

Executive ViewAI

Why It Matters

The adx-mcp-server Python package contains a Kusto query language injection vulnerability that allows authenticated users to execute arbitrary queries against Azure Data Explorer clusters, potentially leading to unauthorized data access, exfiltration, or deletion. Organizations using this package to integrate with Azure Data Explorer face immediate risk of data breach or service disruption if their environments contain sensitive data or critical analytics infrastructure.

Business Impact: High
Compensating Controls

Restrict network access to adx-mcp-server endpoints to trusted internal systems only; implement authentication token rotation and monitor for unusual query patterns in Azure Data Explorer audit logs; limit authenticated user roles in Azure Data Explorer to read-only access on non-sensitive tables pending patch deployment.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy