CVE-2025-71393: Surrealdb

Medium severity, CVSS 6.5. EPSS: 0.5% chance of exploitation in the next 30 days.

SurrealDB before 2.2.2 with scripting enabled fails to properly enforce recursion limits when native functions contain embedded JavaScript that issues new queries. Authenticated attackers can bypass the recursion limit by chaining native and JavaScript function calls to trigger infinite recursion and exhaust server memory.

Affected products

  • Surrealdb Surrealdb: before 2.0.5 (fixed in 2.0.5); from 2.1.0, before 2.1.5 (fixed in 2.1.5); from 2.2.0, before 2.2.2 (fixed in 2.2.2)

Published 2026-07-18. Last modified 2026-09-29.