Skip to main content
CVE-2025-71395VulnerabilityPublished Updated

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

Affects surrealdbSource GCVE Database

0
Compare
Authoritative record:CVE-2025-71395· High 7.1

Not known to be exploited · CVSS 7.1 High · fixed in 2.2.2 : patch surrealdb soon.

Data as of 1 Dec 2026, 18:36 UTC

CVSS 4.0 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulnCheck)CVSS 4.07.1
EPSS
0.3% chance of exploitation in 30 days – higher than 28% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Affects
service. SurrealDB before 2.2.2
Patch
Available – fixed in 2.2.2, 2.1.5, 2.0.5
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.

What to do

Upgrade surrealdb to 2.2.2; surrealdb to 2.1.5; surrealdb to 2.0.5.

Affected software

ProductAffectedFixed in
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • >=2.2.0 <2.2.2
Fixed in
  • 2.2.2
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • >=2.1.0 <2.1.5
Fixed in
  • 2.1.5
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • <2.0.5
Fixed in
  • 2.0.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

If you cannot patch yet, restrict access to authenticated users and monitor for unusual query patterns that may trigger excessive memory usage. Avoid using untrusted regex patterns in string::replace operations.

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.

References

Community reviews

Loading reviews…