Skip to content
OpenAdvisories
Medium · 6.0 CVE-2025-71393 EUVD-2025-210484GHSA-m7rc-8w7m-r9qrGHSA-w8p8-58rp-4rqp

SurrealDB before 2.2.2 Memory Exhaustion via Nested Functions

Published Jul 18, 2026 · Updated Oct 29, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
surrealdb surrealdb 2.2.0 – < 2.2.2, 2.1.0 – < 2.1.5, < 2.0.5 2.2.2

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io surrealdb >= 2.2.0, < 2.2.2 2.2.2 GHSA-m7rc-8w7m-r9qr
crates.io surrealdb >= 2.1.0, < 2.1.5 2.1.5 GHSA-m7rc-8w7m-r9qr
crates.io surrealdb < 2.0.5 2.0.5 GHSA-m7rc-8w7m-r9qr

References