Apache Doris <=0.6.0 SQL Injection via Metadata Query (MCP Server)
CVE-2025-66336 Published on June 22, 2026
Apache Doris MCP Server: SQL injection leading the authentication bypass
Apache Doris MCP Server contains a SQL injection vulnerability in a metadata query path. A user-controlled database name is directly interpolated into a SQL query, and the query is executed without passing the caller's authorization context. This may allow an authenticated attacker, or an anonymous attacker if authentication is disabled, to bypass SQL security validation and access metadata outside the intended database scope.
Affected users are recommended to upgrade to Doris version 0.6.1 or later, which fixes the issue.
Weakness Type
What is a SQL Injection Vulnerability?
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.
CVE-2025-66336 has been classified to as a SQL Injection vulnerability or weakness.
Affected Versions
Apache Software Foundation Apache Doris MCP Server:- Version 0.1.0 and below 0.6.1 is affected.