CVE-2025-71395 HIGH

CVE-2025-71395: SurrealDB before 2.2.2 Memory Exhaustion via string::replace

Vendor Surrealdb
Product surrealdb
Weakness CWE-789
Published July 18, 2026
Last update July 18, 2026

CVSS base score

7.1/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 18, 2026 CVE published