Skip to main content

SurrealDB CVE-2026-63762

| EUVDEUVD-2026-45933 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-07-20 disclosure@vulncheck.com GHSA-hxgc-2rvh-7h4r
6.0
CVSS 4.0 · Vendor: vulncheck
Share

Severity by source

Vendor (vulncheck) PRIMARY
6.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
5.3 MEDIUM

AC:H captures the non-default scripting capability prerequisite; PR:L reflects minimum authenticated-user requirement in base case; impact is availability-only with no C or I compromise.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
Jul 20, 2026 - 15:33 EUVD
Source Code Evidence Fetched
Jul 20, 2026 - 12:50 vuln.today
Analysis Generated
Jul 20, 2026 - 12:50 vuln.today

DescriptionCVE.org

SurrealDB before v2.6.1 (and before v3.0.0-beta.3) contains a denial of service vulnerability in its embedded JavaScript scripting engine, which is enabled via the --allow-scripting capability (disabled by default). Any user able to execute arbitrary queries - including unauthenticated guests when --allow-guests is enabled - can use built-in string functions to construct a large string and pass it to the JavaScript runtime for compilation, triggering a null pointer dereference in the underlying QuickJS-NG engine. This causes the server process to terminate immediately without graceful shutdown, requiring a manual restart. The issue was fixed by updating the rquickjs dependency from v0.9.0 to v0.11.0.

AnalysisAI

Denial of service in SurrealDB's embedded JavaScript scripting engine allows any query-executing user - including unauthenticated guests when guest access is enabled alongside scripting - to immediately crash the server process by passing an oversized string to the QuickJS-NG v0.8 runtime for compilation, triggering a null pointer dereference. The crash requires a manual operator restart with no graceful shutdown, and cannot be leveraged for code execution or data compromise. The attack is constrained to instances where the non-default --allow-scripting capability is active; no public exploit identified at time of analysis, and the vulnerability is not listed in CISA KEV.

Technical ContextAI

SurrealDB is a multi-model database written in Rust that optionally embeds a JavaScript scripting runtime, exposed via the --allow-scripting capability flag (disabled by default). The runtime is backed by QuickJS-NG v0.8, accessed through the Rust binding crate rquickjs v0.9.0. CWE-476 (NULL Pointer Dereference) describes the root cause: when the QuickJS-NG engine attempts to compile a pathologically large string constructed through SurrealDB's built-in string functions, it dereferences a null pointer internally, causing an unrecoverable OS-level process crash that bypasses SurrealDB's own error handling. Because the crash occurs inside a C-level engine embedded via FFI, Rust's memory safety guarantees do not protect against it. Vulnerable packages are rust/surrealdb < 2.6.1 and rust/surrealdb >= 3.0.0-alpha.8, < 3.0.0-beta.3. The fix upgrades the rquickjs dependency to v0.11.0, which bundles a patched version of QuickJS-NG.

RemediationAI

Upgrade SurrealDB to v2.6.1 (stable) or v3.0.0-beta.3 (pre-release); both versions update the rquickjs dependency from v0.9.0 to v0.11.0, resolving the null pointer dereference in QuickJS-NG. Patch pull requests are available at https://github.com/surrealdb/surrealdb/pull/6774 and https://github.com/surrealdb/surrealdb/pull/6833. If immediate upgrade is not feasible, disable the scripting capability by starting SurrealDB with --deny-scripting or by setting SURREAL_CAPS_DENY_SCRIPT=true; this eliminates the attack surface entirely but disables all embedded JavaScript functions and will break any workloads relying on SurrealQL scripting. As a secondary compensating control, use --deny-arbitrary-query scoped to guest, record, or system users to prevent untrusted principals from submitting the triggering query, though this impacts application functionality for those user classes. Full vendor guidance is at https://github.com/surrealdb/surrealdb/security/advisories/GHSA-xx7m-69ff-9crp.

CVE-2025-71392 CRITICAL
9.4 Jul 18

Privilege escalation via second-order SurrealQL injection in SurrealDB before 2.0.5, 2.1.5, and 2.2.2 lets an authentica

CVE-2026-63756 CRITICAL
9.2 Jul 20

Privilege escalation in SurrealDB before v3.1.0 lets unauthenticated attackers hijack the privileges of concurrently-act

CVE-2026-63760 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the database with a single Web

CVE-2026-63747 HIGH
8.7 Jul 20

Denial of service in SurrealDB before 3.1.0 lets an unauthenticated remote attacker crash the entire database process wi

CVE-2026-63757 HIGH
8.7 Jul 20

Session hijacking in SurrealDB before 3.1.0 lets unauthenticated attackers enumerate attached session UUIDs through the

CVE-2026-63735 HIGH
8.6 Jul 20

Cross-tenant authorization bypass in SurrealDB before 3.2.0 lets any authenticated user reach custom API endpoints belon

CVE-2026-63739 HIGH
8.3 Jul 20

Arbitrary file read in SurrealDB before 3.1.5 lets an authenticated database user holding the EDITOR or OWNER role discl

CVE-2026-63763 HIGH
7.5 Jul 20

Confused-deputy privilege escalation in SurrealDB before 2.5.0 and before 3.0.0-beta.3 lets a low-privileged user (e.g.

CVE-2026-63737 HIGH
7.1 Jul 20

Denial of service in SurrealDB before 3.1.5 lets an authenticated user with query-execution privileges crash the entire

CVE-2025-71397 HIGH
7.1 Jul 18

Denial of service in SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 lets an authenticated user with

CVE-2026-63746 HIGH
7.1 Jul 20

Information disclosure in SurrealDB before 3.1.0 allows authenticated record or scope users to bypass table-level SELECT

CVE-2025-71391 HIGH
7.1 Jul 18

Denial of service in SurrealDB before 2.2.2 allows any authenticated user to crash the database by submitting a crafted

Share

CVE-2026-63762 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy