SurrealDB 3.1.0 before 4.0.0 contains an SQL injection vulnerability in its Model Context Protocol (MCP) server because the identifier validator…
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.
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- Surrealdb
- Product
- surrealdb
- CVSS v3.1
- 8.2 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
- Weakness
- CWE-89
- Exposure class
- AI infrastructure, Database
- NVD status
- Deferred
Why it ranks 30 (Notable)
- CVSS v3.1 8.2 high
- Product class: AI infrastructure, database
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.