CVE-2026-144452: greptimedb-mcp-server before 0.6.2 Read-Only Bypass via Comment Markers in Strings
greptimedb-mcp-server before 0.6.2 contains a read-only mode bypass vulnerability in securitygate that allows attackers to run write statements by hiding them behind comment markers inside SQL string literals. Attackers influencing model-generated SQL, such as through prompt injection, can stack INSERT, DELETE, or DROP statements via executesql to modify or destroy data.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments of greptimedb-mcp-server earlier than 0.6.2 that rely on security_gate read-only mode are affected. Exposure is most relevant where the execute_sql capability can receive model-generated SQL.
What does an attacker need to exploit this issue?
The attacker needs a way to influence SQL generated for execute_sql, such as through prompt injection. Exploitation requires user interaction and uses comment markers embedded in SQL string literals to conceal stacked write statements.
What should be done to remediate the issue?
Upgrade greptimedb-mcp-server to version 0.6.2 or later. Versions before 0.6.2 should not treat read-only mode as a reliable control against SQL that may be influenced by untrusted input.