All vulnerabilities

crates.io

CVE-2026-134293

SurrealDB 3.1.0 before 4.0.0 SQL Injection via MCP Tool Identifier Escaped Backticks

Severity
High 8.8
Published
21 Nov 2026
Last changed
21 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
4.0.0
Exploit chance
0.3% in the next 30 daysHigher than 18% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
SQL injection (CWE-89)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Sources
CVE Program

Description

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.

From the CVE Program.

Affected software

SoftwareAffected versions
surrealdbcrates.io · osv:crates.io:surrealdb
  • From 3.1.0 before 4.0.0

About surrealdb

Downloads in the last 90 days (crates.io)
611,769crates.io, 24 Nov 2026
Total downloads (crates.io)
1,955,161crates.io, 24 Nov 2026

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-134293