What’s Vulnerable › Vulnerabilities

CVE-2025-71393: SurrealDB before 2.2.2 Memory Exhaustion via Nested Functions

Description

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

How to fix

Upgrade to a fixed version: surrealdb 2.0.5, 2.1.5, 2.2.2; surrealdb 2.2.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-71393 or the next vulnerability affects your stack