CVE-2025-71395

HIGH CVSS 4.0: 7.1 EPSS 0.45%
Updated Oct 30, 2026
Surrealdb
Parameter Value
CVSS 7.1 (HIGH)
Affected Versions 2.1.0 — 2.2.2
Fixed In 2.0.5
Type CWE-789
Vendor Surrealdb
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 3

Configuration From (including) Up to (excluding)
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
— 2.0.5
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
2.1.0 2.1.5
Surrealdb Surrealdb
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*
2.2.0 2.2.2