CVE-2025-71396

MEDIUMCVSS 6.5/10EPSS 0.29%

Last modified

CVE-2025-71396 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

VendorProductVersions
SurrealdbSurrealdb< 2.0.5
SurrealdbSurrealdb>= 2.1.0, < 2.1.5
SurrealdbSurrealdb>= 2.2.0, < 2.2.2

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2025-71396?
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.
How severe is CVE-2025-71396?
CVE-2025-71396 has a CVSS score of 6.5/10 (MEDIUM severity). The EPSS model estimates a 0.29% probability of exploitation in the next 30 days.
How do I fix CVE-2025-71396?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2025

Are you affected by CVE-2025-71396?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST