CVE-2025-71395
7.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
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
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| surrealdb | surrealdb | 0 < 2.2.2 | affected |
| surrealdb | surrealdb | 2.2.2 | unaffected |
| surrealdb | surrealdb | 0 < 2.1.5 | affected |
| surrealdb | surrealdb | 2.1.5 | unaffected |
| surrealdb | surrealdb | 0 < 2.0.5 | affected |
| surrealdb | surrealdb | 2.0.5 | unaffected |
Weaknesses
- CWE-789: Memory Allocation with Excessive Size Value
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3633-g6mg-p6qq
- https://www.vulncheck.com/advisories/surrealdb-before-memory-exhaustion-via-string-replace
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.