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.
References
| Link | Resource |
|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m7rc-8w7m-r9qr | Vendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-memory-exhaustion-via-nested-functions | Third Party Advisory |
Configurations
Configuration 1 (hide)
|
History
No history.
Information
Published : 2026-07-18 14:17
Updated : 2026-08-13 15:03
NVD link : CVE-2025-71393
Mitre link : CVE-2025-71393
CVE.ORG link : CVE-2025-71393
JSON object : View
Products Affected
surrealdb
- surrealdb
CWE
CWE-674
Uncontrolled Recursion
