CVE-2025-71396: SurrealDB before 2.2.2 Denial of Service via JavaScript Scripting
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
SurrealDBto a version that resolves this vulnerability.Fixed in 2.0.5 - Upgrade
Upgrade
SurrealDBto a version that resolves this vulnerability.Fixed in 2.1.5 - Upgrade
Upgrade
SurrealDBto a version that resolves this vulnerability.Fixed in 2.2.2
Event History
Frequently Asked Questions
What is the severity of CVE-2025-71396?
CVE-2025-71396 has a low severity rating of 2.3 according to the CVSS score.
How can I fix CVE-2025-71396?
To fix CVE-2025-71396, upgrade SurrealDB to version 2.2.2 or later.
What kind of vulnerability is CVE-2025-71396?
CVE-2025-71396 is a Denial of Service vulnerability related to JavaScript scripting functions.
Who is affected by CVE-2025-71396?
SurrealDB users running versions before 2.0.5, 2.1.x before 2.1.5, or 2.2.x before 2.2.2 are affected by CVE-2025-71396.
What triggers CVE-2025-71396?
CVE-2025-71396 can be triggered by an authenticated attacker submitting long-running embedded JavaScript scripts when scripting is enabled.