Skip to content

AAK-DORIS-001: apache-doris-mcp-server below 0.6.1 SQL injection

Severity
HIGH
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/supply_chain.py
Auto-fixable
No.
SARIF name
DorisMcpSqlInjection

What it detects

Project depends on apache-doris-mcp-server at a version < 0.6.1. CVE-2025-66335 is a query-context neutralization bypass in the MCP adapter's tool layer — crafted tool arguments are concatenated into Doris SQL without a parameterized boundary, letting an LLM-driven tool call reach into arbitrary reads/writes. CVE-2025-66336 is a sibling SQL injection in a metadata query path (a user-controlled database name interpolated without the caller's authz context), same < 0.6.1 fixed line. Fixed in 0.6.1.

How to fix

Upgrade apache-doris-mcp-server to 0.6.1 or newer. Audit every tool the adapter exposes to confirm arguments flow through a parameterized query builder, never string concatenation.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-DORIS-001

Limitations

Reads the dependency declarations of the root requirements*.txt, pyproject.toml and Pipfile in their own formats, and reports one whose range admits a release below 0.6.1 (apache-doris-mcp-server<0.6.1 included), and the version the root Pipfile.lock, poetry.lock or uv.lock resolves when it is below 0.6.1. A git requirement's dotted release tag is read as its version (@v0.5.0); a commit, a branch or a tag with no dot (@v2) states none. Only a tag written after the @ alone is read: @refs/tags/v0.5.0, and the release an archive's file name states (.../archive/refs/tags/v0.5.0.tar.gz, apache-doris-mcp-server-0.5.0.tar.gz), are not, so such a requirement states no version and is not reported, even below 0.6.1. A declaration that states no version, such as apache-doris-mcp-server alone or a git URL without a release tag, is not reported, and neither is a requirements file in a sub-directory or an .mcp.json launcher. A manifest over 2 MB is not read. A lockfile over 32 MiB is not read.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-DORIS-001.md: the page then shows that text, with the registry reference appended under it.