Description
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.
Published: 2026-07-20
Score: 6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB versions prior to 2.6.1 (and before 3.0.0‑beta.3) contain a denial‑of‑service flaw in the embedded JavaScript engine. The flaw is triggered when a user executes an arbitrary query that constructs a very large string and passes it to the QuickJS‑NG runtime for compilation. The runtime dereferences a null pointer, causing the SurrealDB server to crash immediately without a graceful shutdown; a manual restart is then required. The vulnerability is classified as a null pointer dereference (CWE‑476).

Affected Systems

The affected product is SurrealDB. Versions earlier than 2.6.1 (and earlier than 3.0.0‑beta.3) are at risk. The issue is only active when the server is run with the --allow‑scripting capability enabled, which is disabled by default. Users who can execute arbitrary queries—including unauthenticated guests when --allow‑guests is enabled—can exploit the flaw.

Risk and Exploitability

The threat is moderate. The exploitation requires query‑execution access, which is possible for any user who can run arbitrary queries on the database. The denial of service can disrupt availability and may necessitate manual intervention to restore service. The EPSS score is less than 1%, indicating a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The presence of the vulnerability in production environments that allow scripting or guest access increases the attack surface, but the overall likelihood of exploitation remains low.

Generated by OpenCVE AI on July 30, 2026 at 19:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SurrealDB to version 2.6.1 or newer, which updates the quickjs dependency to a fixed release.
  • If an upgrade cannot be applied immediately, disable scripting by launching the server without the --allow‑scripting flag or setting it to false to eliminate the vector.
  • Restart the SurrealDB process after applying the above changes to ensure the server starts with the patched runtime.

Generated by OpenCVE AI on July 30, 2026 at 19:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb

Tue, 21 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description 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.
Title SurrealDB before v2.6.1 Denial of Service via scripting
Weaknesses CWE-476
References
Metrics cvssV4_0

{'score': 6, 'vector': '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'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:05:52.215Z

Reserved: 2026-07-18T12:34:08.780Z

Link: CVE-2026-63762

cve-icon Vulnrichment

Updated: 2026-07-21T15:11:28.764Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:45:06Z

Weaknesses