Back to overview

CVE-2025-71395

HIGH
7.1
CVSS 4.0
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.

Metadata

CVE ID
CVE-2025-71395
State
PUBLISHED
Assigner
VulnCheck
Reserved
2026-07-16 12:14 UTC
Published
2026-07-18 13:10 UTC
Last updated
2026-07-18 13:10 UTC
Primary CWE
CWE-789
Memory Allocation with Excessive Size Value
Vendor / Product
surrealdb / surrealdb
Sources
cve.org  ·  NVD

Severity & Metrics

7.1 HIGH CVSS 4.0
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
Affected products (3)
VendorProductPlatformVersions
surrealdb surrealdb 0 < 2.2.2, 2.2.2
surrealdb surrealdb 0 < 2.1.5, 2.1.5
surrealdb surrealdb 0 < 2.0.5, 2.0.5
Weakness (CWE)
CWESourceDescription
CWE-789 cna Memory Allocation with Excessive Size Value
CVSS scores (1)
ScoreSeverityVersionSourceVector
7.1 HIGH 4.0 cna 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
References (2)
Back to overview