Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-33m9-4q46-9q55

0
High
Published: 07/18/2026 (07/18/2026, 15:31:49 UTC)
Source: GCVE Database

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 allowing authenticated users with OWNER or EDITOR permissions to define custom functions with nested FOR loops that can exhaust server CPU resources. The vulnerability arises because while single loop iterations are limited, nested loops are not, enabling CPU exhaustion and causing the server to become unresponsive until manually restarted.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

GitHub Actionsmore threats →ai
surrealdb/surrealdb
pkg:github/surrealdb/surrealdb
Affected versions
<2.0.5>=2.1.0 <2.1.5>=2.2.0 <2.2.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/18/2026, 16:23:04 UTC

Technical Analysis

SurrealDB prior to versions 2.0.5, 2.1.5, and 2.2.2 permits authenticated users with OWNER or EDITOR privileges at various levels to define custom database functions using nested FOR loops. Although iteration counts for single loops are limited, nesting multiple loops allows attackers to execute functions that consume all server CPU time. Configured timeouts do not interrupt this execution, resulting in the server becoming unresponsive to other queries and connections until a manual restart is performed. This vulnerability is tracked as CVE-2025-71397 and is categorized under CWE-835 (Loop with Unreachable Exit Condition).

Potential Impact

An attacker with OWNER or EDITOR permissions can cause a denial of service by exhausting server CPU resources through nested loops in custom functions. This leads to the server becoming unresponsive and unavailable to legitimate users until manually restarted. The vulnerability impacts server availability but does not indicate data confidentiality or integrity compromise.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict OWNER or EDITOR permissions to trusted users only and monitor for unusual function definitions involving nested loops. Consider manual intervention to restart the server if it becomes unresponsive due to this issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-33m9-4q46-9q55
Osv Schema Version
1.4.0
Aliases
["CVE-2025-71397"]
Ecosystems
[]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a5ba17f44ab8fbf7c789e5b

Added to database: 07/18/2026, 15:53:35 UTC

Last enriched: 07/18/2026, 16:23:04 UTC

Last updated: 07/18/2026, 17:24:24 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses