CVE-2025-71395

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductSurrealdb
PublishedJul 18, 2026
First seenJul 18, 2026
Weakness typeCWE-789CWE-789

How to fix

Update
  • surrealdb surrealdb2.0.5, 2.1.5, 2.2.2 or later

Affected products

ProductAffected versionsFixed in
surrealdb surrealdbv < 2.0.5, 2.1.0 ≤ v < 2.1.5, 2.2.0 ≤ v < 2.2.22.0.5, 2.1.5, 2.2.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-71395 · Surrealdb · Dark Radar