CVE-2025-71397: SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 allows authenticated users with OWNER or EDITOR permissions (at the root
Affects surrealdbSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 2.2.2 soon.
Data as of 30 Nov 2026, 18:36 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 7.1 |
|---|
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 18 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
crates.iosurrealdbpkg:cargo/surrealdbOther threats | Affected
| Fixed in
|
crates.iosurrealdbpkg:cargo/surrealdbOther threats | Affected
| Fixed in
|
crates.iosurrealdbpkg:cargo/surrealdbOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in SurrealDB versions 2.0.5, 2.1.5, and 2.2.2. Users should upgrade to these or later versions to remediate the vulnerability. Until patched, restrict OWNER and EDITOR permissions carefully to trusted users only. Manual server restarts are required to recover from an attack. Patch status is confirmed by the version information provided; no additional vendor advisory was included.
Description
SurrealDB versions before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 contain a vulnerability that allows authenticated users with OWNER or EDITOR permissions to define custom database functions using nested FOR loops. This can lead to excessive CPU consumption that is not stopped by configured timeouts, causing the server to become unresponsive until manually restarted.