CVE-2026-134293
Deferred Deferred - Pending Action

SQL Injection in SurrealDB MCP Server

Vulnerability report for CVE-2026-134293, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
surrealdb surrealdb to 4.0.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

SurrealDB 3.1.0 before 4.0.0 has an SQL injection flaw in its Model Context Protocol (MCP) server. The vulnerability occurs because the identifier validator treats the first backtick as a closing delimiter even if it is escaped, while the SurrealQL parser recognizes escaped backticks as literal characters. Attackers can exploit this by providing MCP tool arguments with escaped backticks to break out of quoted identifiers and execute arbitrary SurrealQL statements.

Detection Guidance

To detect this vulnerability, check the installed SurrealDB version. If it is between 3.1.0 and 3.9.99, the system is vulnerable. Use commands like 'surreal version' or inspect package managers for SurrealDB version details.

Impact Analysis

An attacker could exploit this vulnerability to execute arbitrary SQL queries on a vulnerable SurrealDB instance, potentially leading to unauthorized data access, modification, or deletion. This could compromise the confidentiality, integrity, and availability of the database.

Compliance Impact

This vulnerability could lead to unauthorized data access or manipulation, violating compliance requirements for GDPR (data protection) and HIPAA (healthcare data privacy). Organizations using vulnerable versions may face legal penalties, reputational damage, and loss of trust due to data breaches.

Mitigation Strategies

Upgrade SurrealDB to version 4.0.0 or later immediately. This patched version corrects the identifier validation issue and prevents the SQL injection vulnerability.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134293. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...