CVE-2025-71397

HIGHPre-NVD 7.17.1
EchelonGraph scoreMEDIUM confidence

This high-severity CVE scores 7.1 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.3%, top 79% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: epss, secondary
Trending — 3 sources updated this week
7.1EG
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: 0%CVSS: 7.1Exploit: None knownExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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.

CVSS v3
7.1
EG Score
7.1(medium)
EG Risk
32(Track)
EG Risk 32/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 computed
Severity71% × 45%
Exploitation0% × 40%
Automatability0% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
0%
EPSS %ILE
21%
KEV
Not listed

Published

July 18, 2026

Last Modified

July 21, 2026

Advisory Details (2)

Auto-updated Jul 18, 2026
Patch available. Sources: github.
generic

SurrealDB before 2.2.2 CPU Exhaustion via nested FOR loops | Advisories | VulnCheck

https://www.vulncheck.com/advisories/surrealdb-before-cpu-exhaustion-via-nested-for-loops
github Patch Available

CPU exhaustion via custom functions result in total DoS · Advisory · surrealdb/surrealdb · GitHub

https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pxw4-94j3-v9pf

Vendor 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)
PackageVulnerable rangeFixed inDependents
surrealdb2.0.5

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 20× in last 7d / 26× 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.

  1. 2026-07-27 09:26 UTCGHSA enrichment
  2. 2026-07-26 22:23 UTCEG score recompute
  3. 2026-07-26 22:23 UTCGHSA enrichment
  4. 2026-07-26 14:54 UTCEPSS rescore
  5. 2026-07-26 14:54 UTCEPSS rescore
  6. 2026-07-26 11:16 UTCEG score recompute
  7. 2026-07-26 11:16 UTCGHSA enrichment
  8. 2026-07-25 14:17 UTCEPSS rescore
  9. 2026-07-25 14:17 UTCEPSS rescore
  10. 2026-07-24 14:17 UTCEPSS rescore
  11. 2026-07-23 14:18 UTCEPSS rescore
  12. 2026-07-23 14:18 UTCEPSS rescore
  13. 2026-07-23 03:03 UTCEG score recompute
  14. 2026-07-22 23:57 UTCEG score recompute
  15. 2026-07-22 23:57 UTCGHSA enrichment
  16. 2026-07-22 14:08 UTCEPSS rescore
  17. 2026-07-21 15:24 UTCEPSS rescore
  18. 2026-07-20 17:52 UTCEG score recompute
  19. 2026-07-20 17:52 UTCGHSA enrichment
  20. 2026-07-20 17:08 UTCEPSS rescore
  21. 2026-07-19 14:30 UTCEPSS rescore
  22. 2026-07-19 14:30 UTCEPSS rescore
  23. 2026-07-18 16:05 UTCEG score recompute
  24. 2026-07-18 16:05 UTCGHSA enrichment
  25. 2026-07-18 13:40 UTCEG score recompute
Show 1 more
  1. 2026-07-18 13:39 UTCMITRE cvelistV5first tracked

Frequently asked(5)

What is CVE-2025-71397?
CVE-2025-71397 is a high vulnerability published on July 18, 2026. 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…
When was CVE-2025-71397 disclosed?
CVE-2025-71397 was first published in the National Vulnerability Database on July 18, 2026, with the most recent update on July 21, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2025-71397 actively exploited?
CVE-2025-71397 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0% probability of exploitation in the next 30 days, which ranks it in the top 79.1% of all scored CVEs.
What is the CVSS score of CVE-2025-71397?
CVE-2025-71397 has a CVSS v3 base score of 7.1 (NVD).
How do I remediate CVE-2025-71397?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2025-71397, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-71397

Explore →

Is Your Infrastructure Affected by CVE-2025-71397?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.