CVE-2026-63762 — Vulnerability in surrealdb — CVE Details
SurrealDB vulnerable to Denial of Service through scripting function memory edge case
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.45%). Schedule for your next planned update.
Does your project use an affected surrealdb version?
Paste your Cargo.lock to check it for CVE-2026-63762 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
In SurrealDB instances with the scripting capability enabled (--allow-scripting), users with the ability to run arbitrary queries can trigger a server crash due to a memory-safety bug in the underlying JS engine. The SurrealDB instance terminates instantly, requiring a manual restart.
The query consists of using built-in string functions to construct a large string and passing it to the JavaScript runtime for compilation. The exact string size required to trigger the crash varies between SurrealDB versions.
Whilst exploiting the vulnerability requires users to be able to run arbitrary queries, if guest access (--allow-guests), is enabled, then guests can perform this attack.
Impact
Any user able to execute queries on a SurrealDB instance with scripting enabled (--allow-scripting) can cause complete denial of service. The server process terminates immediately without graceful shutdown.
The underlying cause of the vulnerability is a null pointer dereference in the QuickJS-NG v0.8 JavaScript engine, this vulnerability cannot be exploited to execute arbitrary code, or compromise the integrity or confidentiality of data.
Patches
Versions prior to SurrealDB v2.6.1 and v3.0.0-beta.3 are vulnerable.
The patches for SurrealDB v2.6.1 and v3.0.0-beta.3 update the rquickjs dependency from v0.9.0 to v0.11.0, which in turn uses an updated version of QuickJS-NG.
Workarounds
Deny execution of embedded scripting functions through the configuration of capabilities by starting SurrealDB with the --deny-scripting flag or the equivalent environment variable SURREAL_CAPS_DENY_SCRIPT=true. This has a usability implication, although scripting functions are disabled by default.
Administrators can also use --deny-arbitrary-query to deny arbitrary querying by either guest, record or system users, or a combination of those, with impacts to functionality for those users.
Links
SurrealDB Documentation - Capabilities SurrealDB Documentation - Guest Access SurrealQL Documentation - Scripting Functions quickjs-ng v0.9 Release Notes https://github.com/surrealdb/surrealdb/pull/6833 https://github.com/surrealdb/surrealdb/pull/6774
Advisory Timeline
- First published February 12, 2026 (288 days ago).
- Last revised July 21, 2026 — 158 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p surrealdb --precise 2.6.1
cargo update -p surrealdb --precise 3.0.0-beta.3
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: crates.io (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-476NULL Pointer DereferenceMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
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
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-xx7m-69ff-9crpWEB
- https://github.com/surrealdb/surrealdb/pull/6774WEB
- https://github.com/surrealdb/surrealdb/pull/6833WEB
- https://github.com/surrealdb/surrealdb/commit/2b0389b92398d9ecff4632cd51bbf8303832a988WEB
- https://github.com/surrealdb/surrealdb/commit/bcd2ece9ef0d721215f06a47280698669f332285WEB
- https://github.com/surrealdb/surrealdbPACKAGE
Frequently Asked Questions
- What is CVE-2026-63762?
- SurrealDB vulnerable to Denial of Service through scripting function memory edge case. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2026-63762?
- CVE-2026-63762 affects surrealdb. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-63762 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 31.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-121417HIGH
Use-after-free in KV backends via leaked `affinitypool::spawn_local` future
- CVE-2025-71395HIGH
SurrealDB memory exhaustion via string::replace using regex
- CVE-2026-63763HIGH
SurrealDB Affected by Confused Deputy Privilege Escalation through Future Fields and Functions
- CVE-2025-71391HIGH
SurrealDB has uncaught exception in Net module that leads to database crash
- CVE-2026-63747HIGH
SurrealDB has unauthenticated remote DoS via malformed RPC `use` call
- CVE-2023-54366HIGH
SurrealDB: Full Table Permissions by Default
- CVE-2026-63746MEDIUM
SurrealDB: Graph traversal bypasses table SELECT permissions
- CVE-2026-63741MEDIUM
SurrealDB: USE NS/DB implicit creation bypasses DEFINE authorization