CVE-2025-66336 Apache Doris MCP Server: SQL injection leading the authentication bypass

High 8.1 Published Updated

An attacker can exploit SQL injection in Apache Doris MCP Server to bypass authentication and access unauthorized metadata.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-66336?

CVE-2025-66336 is a high-severity SQL injection vulnerability in Apache Doris MCP Server, published on 22 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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: CWE-89

Which versions are affected by CVE-2025-66336?

3 open source packages ship an affected version, including doris-mcp-server. It affects 1 product.

PackageAffectedFixed in
doris-mcp-server PyPIAll versions0.6.1
doris-mcp-server PyPIAll versions0.6.1
doris-mcp-server PyPIAll versions0.6.1

Products include Apache Doris Mcp Server.

How do I fix CVE-2025-66336?

Upgrade doris-mcp-server to 0.6.1 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2025-66336 being exploited?

There is no known exploitation of CVE-2025-66336 in the wild and no public exploit code.

Sources

Also known as GHSA-pqrj-4gwg-h5f7, PYSEC-2026-4048.

Is CVE-2025-66336 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free