CVE-2025-71393 MEDIUM

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

Vendor Surrealdb
Product surrealdb
Weakness CWE-674
Published July 18, 2026
Last update July 20, 2026

CVSS base score

6.0/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 18, 2026 CVE published
July 20, 2026 Record updated