Skip to content
OpenAdvisories
High · 7.1 CVE-2025-71395 EUVD-2025-210486GHSA-3633-g6mg-p6qqGHSA-849x-5qr7-wxfm

SurrealDB before 2.2.2 Memory Exhaustion via string::replace

Published Jul 18, 2026 · Updated Oct 29, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
surrealdb surrealdb 2.2.0 – < 2.2.2, 2.1.0 – < 2.1.5, < 2.0.5 2.2.2

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io surrealdb >= 2.2.0, < 2.2.2 2.2.2 GHSA-3633-g6mg-p6qq
crates.io surrealdb >= 2.1.0, < 2.1.5 2.1.5 GHSA-3633-g6mg-p6qq
crates.io surrealdb < 2.0.5 2.0.5 GHSA-3633-g6mg-p6qq

References