CVE-2025-71396

SurrealDB before 2.2.2 Denial of Service via JavaScript Scripting

Published Jul 18, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
CPEs cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Surrealdb
Surrealdb surrealdb
Vendors & Products Surrealdb
Surrealdb surrealdb
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:15 PM
Reserved
Jul 16, 2026, 12:14 PM
Status
Analyzed
Published
Jul 18, 2026, 2:17 PM
Modified
Oct 29, 2026, 9:17 PM