Vulnerability in Surrealdb
CVE-2025-71395
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.004, 39.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Surrealdb — versions 0, 2.2.2, 2.1.5
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-3633-g6mg-p6qq) (vendor-advisory, Vendor Advisory)
- VulnCheck Advisory: SurrealDB before 2.2.2 Memory Exhaustion via string::replace (Third Party Advisory, third-party-advisory)