SurrealDB before 2.2.2 with scripting enabled fails to properly enforce recursion limits when native functions contain embedded JavaScript that… (CVE-2025-71393)
SurrealDB versions before 2.2.2 with scripting enabled have a vulnerability where recursion limits are not properly enforced when native functions contain embedded JavaScript that issues new queries. This flaw allows authenticated attackers to bypass recursion limits by chaining native and JavaScript function calls, potentially causing infinite recursion and exhausting server memory.
AI Analysis
Technical Summary
SurrealDB before version 2.2.2, when scripting is enabled, fails to enforce recursion limits properly in scenarios where native functions embed JavaScript that issues new queries. Authenticated attackers can exploit this by chaining native and JavaScript function calls to bypass recursion limits, triggering infinite recursion and leading to server memory exhaustion. This vulnerability is tracked as CVE-2025-71393 and is associated with CWE-674 (Improper Control of a Resource Through a Logic Time Bomb or Race Condition).
Potential Impact
The vulnerability can cause a denial of service by exhausting server memory through infinite recursion. It requires authenticated access but does not impact confidentiality or integrity directly. The CVSS 3.1 base score is 6.5 (medium severity), reflecting the impact on availability only.
Mitigation Recommendations
No official patch or fix is currently confirmed. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict or monitor scripting usage carefully and limit authenticated access to trusted users to reduce risk.
SurrealDB before 2.2.2 with scripting enabled fails to properly enforce recursion limits when native functions contain embedded JavaScript that… (CVE-2025-71393)
Description
SurrealDB versions before 2.2.2 with scripting enabled have a vulnerability where recursion limits are not properly enforced when native functions contain embedded JavaScript that issues new queries. This flaw allows authenticated attackers to bypass recursion limits by chaining native and JavaScript function calls, potentially causing infinite recursion and exhausting server memory.
CVSS v3.1
Score 6.5medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SurrealDB before version 2.2.2, when scripting is enabled, fails to enforce recursion limits properly in scenarios where native functions embed JavaScript that issues new queries. Authenticated attackers can exploit this by chaining native and JavaScript function calls to bypass recursion limits, triggering infinite recursion and leading to server memory exhaustion. This vulnerability is tracked as CVE-2025-71393 and is associated with CWE-674 (Improper Control of a Resource Through a Logic Time Bomb or Race Condition).
Potential Impact
The vulnerability can cause a denial of service by exhausting server memory through infinite recursion. It requires authenticated access but does not impact confidentiality or integrity directly. The CVSS 3.1 base score is 6.5 (medium severity), reflecting the impact on availability only.
Mitigation Recommendations
No official patch or fix is currently confirmed. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict or monitor scripting usage carefully and limit authenticated access to trusted users to reduce risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w8p8-58rp-4rqp
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71393"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a5ba17c44ab8fbf7c789a98
Added to database: 07/18/2026, 15:53:32 UTC
Last enriched: 08/13/2026, 19:13:58 UTC
Last updated: 09/01/2026, 10:52:06 UTC
Views: 113
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.