CVE-2026-63741 Details
Description
SurrealDB versions before 3.1.0 fail to validate DEFINE NAMESPACE or DEFINE DATABASE permissions when processing USE NS and USE DB statements. Unauthenticated attackers can create arbitrary namespaces and databases by issuing USE commands, bypassing authorization checks in the RPC use method and SurrealQL executor.
A vulnerability exists in SurrealDB versions prior to 3.1.0, where the database fails to properly validate permissions for defining namespaces and databases. This oversight allows unauthenticated attackers to create arbitrary namespaces and databases by using 'USE NS' and 'USE DB' commands. The vulnerability arises because the 'USE' commands bypass authorization checks in the RPC 'use' method and the SurrealQL executor, enabling unauthorized resource creation.
Users can upgrade to SurrealDB version 3.1.0 or later, where this vulnerability has been patched. For those unable to upgrade, it is recommended to set '--deny-arbitrary-query *' for guest principals, run with '--auth' and require all callers to 'signin' before using 'USE' commands, and promptly revoke namespace-level tokens when a namespace is dropped.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-wp87-mgvq-5j93 | [email protected] | MitigationVendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-use-statement | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-862 | Missing Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| surrealdb surrealdb | < 3.1.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 22, 2026 | Initial Analysis | [email protected] |
| Jul 20, 2026 | New CVE Received | [email protected] |