SurrealDB before 3.1.0 Denial of Service via malformed RPC use
cve-program · CVE-2026-63747
PublishedSurrealDB versions before 3.1.0 contain a denial of service vulnerability in the RPC use handler that panics when db is set without a namespace. Unauthenticated attackers can send a malformed WebSocket message to the /rpc endpoint to crash the server process.
Read the publisher's advisoryeuvd · EUVD-2026-45918
PublishedSurrealDB versions before 3.1.0 contain a denial of service vulnerability in the RPC use handler that panics when db is set without a namespace. Unauthenticated attackers can send a malformed WebSocket message to the /rpc endpoint to crash the server process.
Read the publisher's advisorynvd · CVE-2026-63747
PublishedSurrealDB versions before 3.1.0 contain a denial of service vulnerability in the RPC use handler that panics when db is set without a namespace. Unauthenticated attackers can send a malformed WebSocket message to the /rpc endpoint to crash the server process.
Read the publisher's advisoryosv · GHSA-wjjj-24cx-f28g
PublishedA 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. - Versions 3.1.0 and later are not affected by this issue. ### 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-63747 · CVE overview and exploitation status
cve-program · CVE-2026-63747
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-wjjj-24cx-f28g
- https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-malformed-rpc-use
euvd · EUVD-2026-45918
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-wjjj-24cx-f28g
- https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-malformed-rpc-use
nvd · CVE-2026-63747
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-wjjj-24cx-f28g
- https://www.vulncheck.com/advisories/surrealdb-before-denial-of-service-via-malformed-rpc-use
osv · GHSA-wjjj-24cx-f28g
Related changes
Linked by CVE identifierNo related changes are available here.