cve.bz

CVE-2025-71395

7.1 highEPSS 0.4%

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.

CVSS 4.0
7.1CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS 3.1
6.5CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% chance of exploitation in the next 30 days; higher than 39% of CVEs (scores of 2026-10-29)
CWE
CWE-789
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3633-g6mg-p6qqcrates.iosurrealdb>=2.2.0 <2.2.22.2.2
GHSA-3633-g6mg-p6qqcrates.iosurrealdb>=2.1.0 <2.1.52.1.5
GHSA-3633-g6mg-p6qqcrates.iosurrealdb<2.0.52.0.5

References

Check your stackJSON