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, namespace, or database level) to define custom database functions via DEFINE FUNCTION using nested FOR loops. Although a single loop's iteration count is constrained, nesting multiple loops (e.g., each with 1,000,000 iterations) is not, so an attacker can execute a function that consumes all server CPU time. Configured timeouts do not stop the execution, rendering the server unresponsive to other queries and connections until it is manually restarted.
CVE-2025-71397
Score 6.5 from GitHub Security Advisory (severity: HIGH) published 2026-07-18. NVD baseline CVSS 6.5; sources differ by 0.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.5
- EG Score
- 6.5(medium)
- EG Risk
- 29(Track)EG Risk 29/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity65% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 24%
- KEV
- Not listed
Published
July 18, 2026
Last Modified
August 13, 2026
Advisory Details (2)
Auto-updated Jul 18, 2026SurrealDB before 2.2.2 CPU Exhaustion via nested FOR loops | Advisories | VulnCheck
https://www.vulncheck.com/advisories/surrealdb-before-cpu-exhaustion-via-nested-for-loopsCPU exhaustion via custom functions result in total DoS · Advisory · surrealdb/surrealdb · GitHub
https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pxw4-94j3-v9pfVendor Advisories for CVE-2025-71397(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
crates.io(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| surrealdb | — | 2.0.5 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 12× in last 7d / 68× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 163 total refreshes for this CVE.
- 2026-09-11 14:52 UTCEPSS rescore
- 2026-09-11 09:36 UTCEPSS rescore
- 2026-09-10 09:34 UTCEPSS rescore
- 2026-09-08 22:00 UTCEPSS rescore
- 2026-09-07 23:58 UTCEG score recompute
- 2026-09-07 23:58 UTCGHSA enrichment
- 2026-09-07 16:00 UTCEPSS rescore
- 2026-09-06 18:53 UTCEG score recompute
- 2026-09-06 18:53 UTCGHSA enrichment
- 2026-09-06 13:47 UTCEPSS rescore
- 2026-09-05 20:24 UTCEG score recompute
- 2026-09-05 20:24 UTCGHSA enrichment
- 2026-09-04 05:06 UTCEPSS rescore
- 2026-09-02 14:11 UTCEPSS rescore
- 2026-09-01 13:53 UTCEPSS rescore
- 2026-08-31 01:23 UTCEG score recompute
- 2026-08-31 01:23 UTCGHSA enrichment
- 2026-08-30 03:10 UTCEG score recompute
- 2026-08-30 03:10 UTCGHSA enrichment
- 2026-08-30 01:21 UTCEPSS rescore
- 2026-08-28 21:40 UTCEPSS rescore
- 2026-08-27 21:25 UTCEG score recompute
- 2026-08-27 21:25 UTCGHSA enrichment
- 2026-08-27 14:24 UTCEPSS rescore
- 2026-08-26 22:33 UTCEG score recompute
Show 75 moreShow fewer
- 2026-08-26 22:33 UTCGHSA enrichment
- 2026-08-26 14:45 UTCEPSS rescore
- 2026-08-25 18:49 UTCEG score recompute
- 2026-08-25 18:49 UTCGHSA enrichment
- 2026-08-25 13:48 UTCEPSS rescore
- 2026-08-24 19:13 UTCEG score recompute
- 2026-08-24 19:13 UTCGHSA enrichment
- 2026-08-24 14:16 UTCEPSS rescore
- 2026-08-23 18:58 UTCEG score recompute
- 2026-08-23 18:58 UTCGHSA enrichment
- 2026-08-23 00:18 UTCEPSS rescore
- 2026-08-22 20:45 UTCEG score recompute
- 2026-08-22 20:45 UTCGHSA enrichment
- 2026-08-21 23:48 UTCEPSS rescore
- 2026-08-21 22:32 UTCGHSA enrichment
- 2026-08-21 00:19 UTCEG score recompute
- 2026-08-21 00:19 UTCGHSA enrichment
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 02:06 UTCEG score recompute
- 2026-08-20 02:06 UTCGHSA enrichment
- 2026-08-19 17:03 UTCEPSS rescore
- 2026-08-19 03:52 UTCEG score recompute
- 2026-08-19 03:52 UTCGHSA enrichment
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-18 05:02 UTCEG score recompute
- 2026-08-18 05:02 UTCGHSA enrichment
- 2026-08-17 13:46 UTCEPSS rescore
- 2026-08-17 06:49 UTCEG score recompute
- 2026-08-17 06:49 UTCGHSA enrichment
- 2026-08-16 14:55 UTCEPSS rescore
- 2026-08-16 08:37 UTCEG score recompute
- 2026-08-16 08:37 UTCGHSA enrichment
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 10:24 UTCEG score recompute
- 2026-08-15 10:24 UTCGHSA enrichment
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 12:10 UTCEG score recompute
- 2026-08-14 12:10 UTCGHSA enrichment
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 13:57 UTCEG score recompute▼ 0.60
- 2026-08-13 13:57 UTCGHSA enrichment
- 2026-08-13 13:54 UTCNVD updateCVSS v3 → 6.5 · severity → MEDIUM
- 2026-08-13 07:22 UTCGHSA enrichment
- 2026-08-12 20:17 UTCEG score recompute
- 2026-08-12 20:17 UTCGHSA enrichment
- 2026-08-12 13:50 UTCEPSS rescore
- 2026-08-12 09:15 UTCGHSA enrichment
- 2026-08-11 22:11 UTCEG score recompute
- 2026-08-11 22:11 UTCGHSA enrichment
- 2026-08-11 13:42 UTCEPSS rescore
- 2026-08-11 11:03 UTCGHSA enrichment
- 2026-08-11 00:00 UTCEG score recompute
- 2026-08-11 00:00 UTCGHSA enrichment
- 2026-08-10 23:59 UTCEPSS rescore
- 2026-08-10 12:57 UTCGHSA enrichment
- 2026-08-10 01:54 UTCGHSA enrichment
- 2026-08-09 14:51 UTCEG score recompute
- 2026-08-09 14:51 UTCGHSA enrichment
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-09 03:49 UTCGHSA enrichment
- 2026-08-08 16:46 UTCEG score recompute
- 2026-08-08 16:46 UTCGHSA enrichment
- 2026-08-08 16:36 UTCEPSS rescore
- 2026-08-08 05:42 UTCGHSA enrichment
- 2026-08-07 18:39 UTCEG score recompute
- 2026-08-07 18:39 UTCGHSA enrichment
- 2026-08-07 16:27 UTCEPSS rescore
- 2026-08-07 07:32 UTCGHSA enrichment
- 2026-08-06 20:29 UTCEG score recompute
- 2026-08-06 20:29 UTCGHSA enrichment
- 2026-08-06 13:46 UTCEPSS rescore
- 2026-08-06 09:26 UTCGHSA enrichment
- 2026-08-05 22:23 UTCEG score recompute
- 2026-08-05 22:23 UTCGHSA enrichment
- 2026-08-05 19:17 UTCEPSS rescore
Related CVEs(same CWE)
Same CWE
10 shownCWE-835
Frequently asked(5)
What is CVE-2025-71397?
When was CVE-2025-71397 disclosed?
Is CVE-2025-71397 actively exploited?
What is the CVSS score of CVE-2025-71397?
How do I remediate CVE-2025-71397?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-71397
Is Your Infrastructure Affected by CVE-2025-71397?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.