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
No history.
Information
Published : 2026-07-18 14:17
Updated : 2026-08-19 17:51
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
