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.
References
| Link | Resource |
|---|---|
| https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3633-g6mg-p6qq | Vendor Advisory |
| https://www.vulncheck.com/advisories/surrealdb-before-memory-exhaustion-via-string-replace | Third Party Advisory |
Configurations
Configuration 1 (hide)
|
History
29 Sep 2026, 19:10
| Type | Values Removed | Values Added |
|---|---|---|
| Summary |
|
19 Aug 2026, 17:51
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3633-g6mg-p6qq - Vendor Advisory | |
| References | () https://www.vulncheck.com/advisories/surrealdb-before-memory-exhaustion-via-string-replace - Third Party Advisory | |
| First Time |
Surrealdb
Surrealdb surrealdb |
|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 6.5 |
| CPE | cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* |
18 Jul 2026, 14:17
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-07-18 14:17
Updated : 2026-10-29 21:17
NVD link : CVE-2025-71395
Mitre link : CVE-2025-71395
CVE.ORG link : CVE-2025-71395
JSON object : View
Products Affected
surrealdb
- surrealdb
CWE
CWE-789
Memory Allocation with Excessive Size Value
