---
id: CVE-2025-66336
aliases:
  - GHSA-pqrj-4gwg-h5f7
title: Apache Doris MCP Server is vulnerable to SQL Injection via metadata query path
summary: Apache Doris MCP Server is vulnerable to SQL Injection via metadata query path
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'
vendor: doris-mcp-server
product: doris-mcp-server
ecosystem: pip
affected:
  - doris-mcp-server < 0.6.1
patched:
  - doris-mcp-server 0.6.1
published: '2026-06-22'
updated: '2026-09-11'
sourceUpdated: '2026-09-11T22:15:04.063137855Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-pqrj-4gwg-h5f7'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-66336'
  - url: 'https://github.com/apache/doris-mcp-server/pull/68'
  - url: 'https://github.com/apache/doris-mcp-server'
  - url: 'https://lists.apache.org/thread/4l4v3m7ofwrgp4s4s98pjb5l03fcrzo2'
  - url: 'http://www.openwall.com/lists/oss-security/2026/06/22/1'
  - url: 'https://github.com/advisories/GHSA-pqrj-4gwg-h5f7'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00561
epssPercentile: 0.44348
cwe:
  - CWE-89
ingestedAt: '2026-09-12T00:03:49.069Z'
---

## Overview

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.

## Affected packages

- `doris-mcp-server < 0.6.1`

## Remediation

Upgrade to a patched release:

- `doris-mcp-server 0.6.1`
