# CVE-2025-66335: Apache Doris MCP Server vulnerable to SQL Injection via improper query context neutralization

Source: https://junglewise.ai/threats/cve-2025-66335-apache-doris-mcp-server-vulnerable-to-sql-injection-via-improper  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-20. Updated: 2026-05-11  
License: CC BY 4.0 with a link back

CVE-2025-66335 · Severity: medium · CVSS 5.3 · Published 2026-04-20

Apache Doris MCP Server versions earlier than 0.6.1 are affected by an improper neutralization flaw in query context handling that may allow execution of unintended SQL statements and bypass of intended query validation and access restrictions through the MCP query execution interface. Version 0.6.1 and later are not affected.

Technologies: [doris-mcp-server (PyPI)](https://junglewise.ai/threats/technologies/doris-mcp-server). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-66335 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-66335 being exploited in the wild.

**How severe is CVE-2025-66335?** Medium severity, with a CVSS score of 5.3, published 20 April 2026.

**Which products and versions are affected?** doris-mcp-server (PyPI) >= 0.1.0, < 0.6.1, ECOSYSTEM:introduced=0.1.0,fixed=0.6.1.

**Is there a fix for CVE-2025-66335?** Yes. doris-mcp-server (PyPI): upgrade to 0.6.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-66335?** Check whether you run Apache Doris Mcp Server or doris-mcp-server (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- doris-mcp-server (PyPI): upgrade to 0.6.1 or later

  ```sh
  pip install "doris-mcp-server>=0.6.1"
  ```


## Affected products

- Apache Doris Mcp Server
- doris-mcp-server (PyPI) >= 0.1.0, < 0.6.1, ECOSYSTEM:introduced=0.1.0,fixed=0.6.1

## Identifiers

- CVE-2025-66335
- GHSA-qhfq-gvvc-5q6q
- PYSEC-2026-2459

## References

- [https://lists.apache.org/thread/odp0fyyst8kxm7hhm9z4d1snh1y4hjpy](https://lists.apache.org/thread/odp0fyyst8kxm7hhm9z4d1snh1y4hjpy)
- [http://www.openwall.com/lists/oss-security/2026/04/17/4](http://www.openwall.com/lists/oss-security/2026/04/17/4)
- [https://github.com/apache/doris-mcp-server/releases/tag/0.6.1](https://github.com/apache/doris-mcp-server/releases/tag/0.6.1)

## Related threats

- [Apache Doris MCP Server SQL injection in metadata query path](https://junglewise.ai/threats/cve-2025-66336-apache-doris-mcp-server-sql-injection-in-metadata-query-path)
- [PYSEC-2026-1315 - Apache Doris-MCP-Server: Improper Access Control results in bypassing a "read-only" mode](https://junglewise.ai/threats/cve-2025-58337-apache-doris-mcp-server-improper-access-control-results-in)
