Skip to content
DayZeroHub
High Not yet writtenCVSS 8.8CVE-2026-134293

CVE-2026-134293: SurrealDB 3.1.0 before 4.0.0 SQL Injection via MCP Tool Identifier Escaped Backticks

surrealdb surrealdb

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-134293: high-severity vulnerability (CVSS 8.8) in surrealdb surrealdb.

What happened

Original description from the source: SurrealDB 3.1.0 before 4.0.0 contains an SQL injection vulnerability in its Model Context Protocol (MCP) server because the identifier validator (consume_backtick_ident and validate_identifier) treats the first backtick as the closing delimiter, ignoring escape characters that the SurrealQL parser honors. Attackers can supply MCP tool arguments containing an escaped backtick to break out of the quoted identifier and execute arbitrary SurrealQL statements.

Why it matters

High severity, CVSS 8.8.

Affected products and versions

surrealdb surrealdb >= 3.1.0, < 4.0.0; surrealdb surrealdb 4.0.0 (fixed in 4.0.0)

ProductVersionsFixed in
surrealdb surrealdb>= 3.1.0, < 4.0.0—
surrealdb surrealdb4.0.04.0.0

Action recommended by the source

Upgrade to a fixed version: 4.0.0.

Fixed in: 4.0.0

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-89

Relevant change history

  1. Published

    Preliminary advisory published.