Description
SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 does not enforce a default execution-time limit on embedded JavaScript scripting functions when the scripting capability is explicitly enabled (via --allow-scripting or --allow-all). An authenticated attacker can submit long-running JavaScript functions to exhaust server resources and cause a denial of service. Scripting is disabled by default.
Published: 2026-07-18
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SurrealDB fails to enforce a default execution time limit on embedded JavaScript scripting functions when scripting is explicitly enabled (via --allow-scripting or --allow-all). An authenticated user can submit long-running JavaScript functions that consume server resources, leading to a denial of service. The weakness belongs to the abnormal resource consumption family (CWE-770).

Affected Systems

SurrealDB is affected on all releases prior to 2.0.5, prior to 2.1.5 in the 2.1.x branch, and prior to 2.2.2 in the 2.2.x branch. Any instance that has scripting enabled is potentially vulnerable.

Risk and Exploitability

The CVSS score of 2.3 indicates a low severity rating, and the EPSS score of less than 1% suggests a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an authenticated identity that has permission to enable scripting. With scripting enabled, an attacker could craft a lengthy JavaScript function to exhaust memory or CPU resources, temporarily disabling the server or affecting availability for legitimate users. Because scripting is disabled by default, the risk is mitigated until an administrator explicitly enables it. However, in environments where scripting is enabled, the denial-of-service impact can be significant for the affected instance.

Generated by OpenCVE AI on July 30, 2026 at 23:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest SurrealDB release 2.2.2 or later, which enforces an execution-time limit on JavaScript scripting.
  • If upgrading immediately is not possible, run SurrealDB without the --allow-scripting or --allow-all flags to keep scripting disabled.
  • Restrict scripting capability to trusted administrators by enforcing strict authentication and authorization controls.

Generated by OpenCVE AI on July 30, 2026 at 23:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 02: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

Mon, 20 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 18 Jul 2026 13:45:00 +0000

Type Values Removed Values Added
Description SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 does not enforce a default execution-time limit on embedded JavaScript scripting functions when the scripting capability is explicitly enabled (via --allow-scripting or --allow-all). An authenticated attacker can submit long-running JavaScript functions to exhaust server resources and cause a denial of service. Scripting is disabled by default.
Title SurrealDB before 2.2.2 Denial of Service via JavaScript Scripting
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

Surrealdb Surrealdb
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:48:18.985Z

Reserved: 2026-07-16T12:14:41.770Z

Link: CVE-2025-71396

cve-icon Vulnrichment

Updated: 2026-07-20T13:38:23.199Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T23:15:06Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling