CVE-2025-71395

Summary

SurrealDB versions before 2.2.2 contain a memory exhaustion vulnerability in the string::replace function that fails to restrict resulting string length when using regex patterns. An authenticated attacker can craft a malicious query to exhaust server memory through unbounded string allocations, causing denial of service.

Affected Software

VendorProductVersion RangeStatus
surrealdbsurrealdb0 < 2.2.2affected
surrealdbsurrealdb2.2.2unaffected
surrealdbsurrealdb0 < 2.1.5affected
surrealdbsurrealdb2.1.5unaffected
surrealdbsurrealdb0 < 2.0.5affected
surrealdbsurrealdb2.0.5unaffected

Weaknesses

  • CWE-789: Memory Allocation with Excessive Size Value

References