CVE-2025-71395
HIGH
7.1
CVSS 4.0
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.
Metadata
Severity & Metrics
7.1
HIGH CVSS 4.0
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
Affected products (3)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| surrealdb | surrealdb | — | 0 < 2.2.2, 2.2.2 |
| surrealdb | surrealdb | — | 0 < 2.1.5, 2.1.5 |
| surrealdb | surrealdb | — | 0 < 2.0.5, 2.0.5 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-789 | cna | Memory Allocation with Excessive Size Value |
CVSS scores (1)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 7.1 | HIGH | 4.0 | cna | 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 |
References (2)
- GitHub Security Advisory (GHSA-3633-g6mg-p6qq) https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3633-g6mg-p6qq
- VulnCheck Advisory: SurrealDB before 2.2.2 Memory Exhaustion via string::replace https://www.vulncheck.com/advisories/surrealdb-before-memory-exhaustion-via-string-replace