CVE-2025-71395Published Jul 18, 2026 · Jul 18Updated Oct 31
SurrealDB before 2.2.2 Memory Exhaustion via string::replace
surrealdb
High7.1Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| surrealdb crates.io |
|
|
Original description
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.