Vulnerability  ·  2026-06-23

Apache Doris MCP Server — Authenticated SQL Injection via Unparameterised Database Name in Metadata Query (CVE-2025-66336)

VulnerabilityHigh impactGlobalCVE-2025-66336
The Apache Doris MCP Server contains a SQL injection vulnerability in a metadata query path where a user-controlled database name is directly interpolated into a SQL query without parameterisation, and the query executes without passing the caller's authorisation context. This may allow an authenticated attacker, or an anonymous attacker if the MCP server is exposed without authentication, to perform SQL injection. CVSS 8.1 High; published 2026-06-22 with an Apache mailing list advisory.
MCP servers for data warehouses like Apache Doris are used to give LLM agents direct SQL query capability over production analytics data. A SQL injection in the MCP server's metadata path allows an attacker (or a prompt-injected agent) to read arbitrary data, bypass row-level security, or potentially achieve RCE via database-native functions — turning an LLM's data access tool into a direct database attack vector.
Authenticated (or anonymous if exposed without auth) attacker supplies a crafted database name to the metadata query path of the Doris MCP Server, achieving SQL injection.
Apache Doris MCP Server (versions per Apache advisory)
Apply Apache Doris MCP Server patch per the Apache advisory. Advisory: https://lists.apache.org/thread/4l4v3m7ofwrgp4s4s98pjb5l03fcrzo2; NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-66336
Sources
Apache Mailing List AdvisoryNVD CVE-2025-66336
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →