Apache Doris MCP Server is vulnerable to SQL Injection via metadata query path
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | doris-mcp-server | < 0.6.1 | 0.6.1 |
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
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N- Weakness (CWE)
CWE-89- Platform
- Python (PyPI)
- Package
doris-mcp-server- Disclosed
- 22.06.2026
- Updated
- 11.10.2026 15:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-4048 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-pqrj-4gwg-h5f7 - CC BY 4.0
Vulnerability history: doris-mcp-server
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 3
- First → latest
- 11.2025 06.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 2
Disclosures per year
- 2025: 1
- 2026: 2
-
Apache Doris MCP Server is vulnerable to SQL Injection via metadata query path this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.