# PYSEC-2026-4048: Apache Doris MCP Server is vulnerable to SQL Injection via metadata query path

- Database: PyPA
- Published: 2026-10-01
- Modified: 2026-10-01

## Tracked as

- [CVE-2025-66336](https://cve.now/CVE-2025-66336.md): Apache Doris MCP Server: SQL injection leading the authentication bypass

## Also published as

- [GHSA-PQRJ-4GWG-H5F7](https://cve.now/GHSA-PQRJ-4GWG-H5F7.md) (GitHub)

## Affected versions

- doris-mcp-server (PyPI): fixed in 0.6.1

## 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.

## References

- https://nvd.nist.gov/vuln/detail/CVE-2025-66336
- https://github.com/apache/doris-mcp-server/pull/68
- https://github.com/apache/doris-mcp-server
- https://lists.apache.org/thread/4l4v3m7ofwrgp4s4s98pjb5l03fcrzo2
- http://www.openwall.com/lists/oss-security/2026/06/22/1
- https://pypi.org/project/doris-mcp-server
- https://github.com/advisories/GHSA-pqrj-4gwg-h5f7

Page: https://cve.now/PYSEC-2026-4048

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
