Read the docs

Authorization bypass in SurrealDB lets editors recreate dropped namespaces

Priority MEDIUM 45CWE-862Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
Security bypass
Confidentiality · integrity · availability
None · Low · Low
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-862.

Summary

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 with a session authenticated before a root administrator dropped their namespace can run DDL to silently recreate that namespace, empty, without root privileges. This is a missing authorization check (CWE-862).

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
Fix Fixed surrealdb (surrealdb): 4.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
surrealdbsurrealdbbefore 4.0.04.0.0Patch availableCNA
  • surrealdb Vendorsurrealdb Affected before 4.0.0 Fixed in 4.0.0 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*——surrealdb
  • cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* Versions — — ·surrealdb

Remediation

Upgrade SurrealDB to version 4.0.0 or later, which fixes the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA surrealdb (surrealdb) Fixed in 4.0.0

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-145070
  2. 2026-12-04 CISA SSVC decision points changed

References

  • TI-2026-96302 SurrealDB Memory Exhaustion via GraphQL WebSocket Upgrade CVSS 4.0HIGH 8.7
  • TI-2026-84301 MCP session hijack in SurrealDB via BoundSubject collision CVSS 4.0HIGH 8.6
  • TI-2026-96306 Out-of-bounds read in SurrealKV InternalKeyRef decoder CVSS 4.0HIGH 8.3
  • TI-2026-96310 Authorization bypass in SurrealDB via COMPUTED field permissions CVSS 4.0HIGH 7.1
  • TI-2026-96305 Decimal overflow in SurrealDB math functions crashes the server CVSS 4.0HIGH 7.1
  • TI-2026-96295 Information disclosure in SurrealDB via ON DELETE REJECT errors CVSS 4.0HIGH 7.1
See all 98 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences