surrealdb
Affected
- introduced
0, fixed3.1.0(semver)
Fixed versions
3.1.0
Fix
- Fixed version
3.1.0cargo update -p surrealdb --precise 3.1.0
Advisory
Also known as: CVE-2026-63747
SurrealDB has unauthenticated remote DoS via malformed RPC use call
A single unauthenticated WebSocket message to /rpc crashed the SurrealDB server. Sending use { db: "x" } without first selecting a namespace hit .expect("namespace should be set") in the use handler; because surrealdb-core is built with panic = 'abort', the panic terminated the process. use is callable before signin, and the per-method capability check passes by default for guest callers — so no credentials, token, or --allow-guests flag are required.
Impact
An unauthenticated remote attacker who could reach the /rpc endpoint could crash the SurrealDB server with a single WebSocket message. No credentials, token, session knowledge, or capability are required.
Patches
A patch has been introduced that returns a typed invalid_params response when db is set on a session with no ns, replacing the panic.
Workarounds
Affected users who are unable to update should restrict network access to the /rpc endpoint to trusted clients, and run SurrealDB under a process supervisor that restarts on crash.
High Basis: The source's own band: HIGH
0, fixed 3.1.0 (semver)3.1.0
3.1.0cargo update -p surrealdb --precise 3.1.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0