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.
Metrics
CVSS 3.1 6.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:LWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| surrealdb | surrealdb | < 3.1.0 |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-wp87-mgvq-5j93Mitigation, Vendor Advisory
- https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-use-statementThird Party Advisory
Timeline
- Published
- Jul 20, 2026
- Last modified
- Jul 23, 2026
- NVD status
- Analyzed