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.
CVE-2026-145070
CVSS base score
4.2 (v3.1)
Severity
MEDIUM
Attack vector
Network
Weakness
CWE-862
Last modified
December 4, 2026
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L