CVE-2026-145070
Deferred Deferred - Pending Action

SurrealDB Namespace Re-creation via DDL Without Authorization

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

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: VulnCheck

Description

SurrealDB before 4.0.0 lacks namespace-creation authorization checks in DDL statements such as DEFINE FUNCTION, DEFINE PARAM, and DEFINE USER ON NS. Database- or namespace-level Editors holding a WebSocket or embedded SDK session authenticated before a root administrator dropped their namespace can execute DDL to silently recreate that namespace, empty, without root privileges.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
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-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

SurrealDB before version 4.0.0 has a flaw where users with editor privileges can bypass authorization checks to recreate deleted namespaces or databases. This happens when they execute DDL statements like DEFINE FUNCTION or DEFINE USER ON NS through WebSocket or embedded SDK sessions established before a root admin removed the namespace. The recreated namespace is empty but bypasses root-level permissions.

Detection Guidance

Detecting this vulnerability requires checking SurrealDB versions before 4.0.0 and monitoring for unauthorized DDL statements like DEFINE FUNCTION, DEFINE PARAM, or DEFINE USER ON NS. Inspect logs for namespace recreation events or unexpected DDL execution by non-root users.

Impact Analysis

An attacker with editor access could silently recreate a deleted namespace, potentially allowing unauthorized operations within that namespace. This could lead to data integrity issues or unauthorized access if combined with other vulnerabilities. The impact is limited to authenticated users with active sessions tied to the deleted namespace.

Compliance Impact

This vulnerability could violate compliance requirements that mandate strict access controls and auditability of namespace/database creation. For GDPR, it may impact data protection by enabling unauthorized namespace recreation. For HIPAA, it could compromise data integrity and access controls in healthcare environments.

Mitigation Strategies

Upgrade SurrealDB to version 4.0.0 or later immediately. Review and revoke unnecessary editor privileges. Monitor active sessions and disable WebSocket or embedded SDK access for non-root users until the upgrade is complete.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-145070. 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...