Vulnerability in Surrealdb
CVE-2025-71393
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.
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.005, 40.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Surrealdb — versions 0, 2.2.2, 2.1.5
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-m7rc-8w7m-r9qr) (vendor-advisory, Vendor Advisory)
- VulnCheck Advisory: SurrealDB before 2.2.2 Memory Exhaustion via Nested Functions (Third Party Advisory, third-party-advisory)