CVE-2026-144452

SQL comment parsing let writes pass the MCP read-only gate

GreptimeTeam · greptimedb-mcp-server

First documented disclosure · Review checkpoint

Summary

A query could appear read-only to the MCP gate while GreptimeDB executed a hidden write statement.

Severity and exploitation evidence

Medium · 6.1/10 · CVSS 4.0. Severity source.

Exploitation not established: The original demonstrates writes using the real MCP tool and a controlled GreptimeDB 1.3.1 instance, without an LLM. A tool error after execution did not prevent the write. Malicious exploitation is not established.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

Regex comment stripping disagreed with SQL string and comment boundaries. Comment markers inside strings or line comments could hide a stacked statement from the keyword check while the original SQL was sent to the database.

Conditions required

The caller or model controls tool query text and the configured database identity has write permissions. A genuinely read-only database role prevents the demonstrated writes.

Potential impact

Rows or tables may be inserted, deleted or dropped despite the MCP read-only setting.

Affected versions and configurations

greptimedb-mcp-server through 0.6.1.

Fix and mitigation status

0.6.2.

Practical next steps

Upgrade to 0.6.2 and use a database role limited to read operations. The fix parses every statement and deliberately blocks SET, USE, ADMIN and VALUES in read-only mode.

Operating lesson

Enforce read-only access in the database and ensure any SQL gate uses the database’s actual parsing rules.

Evidence and limits

CVE publication: 2026-12-03. CVSS 4.0 6.1 is the VulnCheck CNA assessment. The public November 27 PR explains the comment-boundary bypass; it merged December 1. The GHSA and CNA datePublic use December 2, and CVE ingestion is December 3. The GHSA body’s historical “patched: none” is superseded by its fixed range and the December 2 release.

Sources