Resource exhaustion in Surrealdb
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.
EPSS: 0.003 (23.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Surrealdb — versions 0, 2.2.2, 2.0.5
Weakness classification (CWE)
References
- disclosure@vulncheck.com (vendor-advisory, Vendor Advisory)
- disclosure@vulncheck.com (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2025-71396?
- CVE-2025-71396 is a medium-severity vulnerability in Surrealdb, classified under Allocation of Resources Without Limits or Throttling. CVSS score: 6.5/10. Published 2026-07-18.
- How severe is CVE-2025-71396?
- Medium severity. CVSS v3 base score is 6.5 out of 10.