SurrealDB before 4.0.0 Authorization Bypass via DDL Namespace Recreation
- CVE-2026-145070
- EUVD-2026-144304
Summary
SurrealDB versions before 4.0.0 lack authorization checks on namespace creation within DDL statements such as DEFINE FUNCTION, DEFINE PARAM, and DEFINE USER ON NS. A database- or namespace-level Editor holding a WebSocket or embedded SDK session that was authenticated before a root administrator dropped their namespace can run this DDL to recreate that namespace, empty, without holding root privileges. The advisory assigns a CVSS score of 4.2 and does not list the issue on the CISA known exploited vulnerabilities catalog.
AI summary · verify against the vendor advisory
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.
Text from the CVE.org record.
Recommendation
surrealdb
- If you run a version before 4.0.0update to 4.0.0 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
surrealdb
Affected versions Fixed in before 4.0.0 4.0.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.