published 18 Jul 2026 · updated 29 Oct 2026
SurrealDB before 2.2.2 Memory Exhaustion via string::replace
7.1HighCVSS 7.1EPSS 0%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.0.5, 2.1.5 and 2.2.2.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| surrealdb | <2.0.5, >=2.1.0 <2.1.5, >=2.2.0 <2.2.2 | 2.0.5, 2.1.5, 2.2.2 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket