Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-71397

published high CVSS 4.0 · 7.1

SurrealDB before 2.2.2 CPU Exhaustion via nested FOR loops

Published
18 Jul 2026, 13:10:15 UTC
Updated
29 Oct 2026, 21:15:23 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
surrealdb — surrealdb2.2.0 to < 2.2.2 (affected · semver) · 2.2.2 (unaffected · semver) · Other versions: unaffected Version-specific Not stated VulnCheck
surrealdb — surrealdb2.1.0 to < 2.1.5 (affected · semver) · 2.1.5 (unaffected · semver) · Other versions: unaffected Version-specific Not stated VulnCheck
surrealdb — surrealdb0 to < 2.0.5 (affected · semver) · 2.0.5 (unaffected · semver) · Other versions: unaffected Version-specific Not stated VulnCheck

Description

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.

en · VulnCheck · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
4.0
Base score
7.1 / 10
Severity
high
Provider
VulnCheck · cna
Vector string
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

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
surrealdb surrealdb 2.2.0 to < 2.2.2 (affected · semver)2.2.2 (unaffected · semver)Default: unaffected VulnCheck · cna
surrealdb surrealdb 2.1.0 to < 2.1.5 (affected · semver)2.1.5 (unaffected · semver)Default: unaffected VulnCheck · cna
surrealdb surrealdb 0 to < 2.0.5 (affected · semver)2.0.5 (unaffected · semver)Default: unaffected VulnCheck · cna

Weaknesses

1
  • CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop') (VulnCheck · cna)

References

2

Provider assertions

2

VulnCheck · cna

SurrealDB before 2.2.2 CPU Exhaustion via nested FOR loops

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
f88fd9b6ebee739e652178c33616d6cb1a2314686187d6ceb6b948c4e9842b01
Ingested
29 Oct 2026, 21:17:51 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected