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 before 2.2.2 with scripting enabled fails to properly enforce recursion limits when native functions contain embedded JavaScript that issues new queries. Authenticated attackers can bypass the recursion limit by chaining native and JavaScript function calls to trigger infinite recursion and exhaust server memory.
AI Analysis
Technical Summary
This vulnerability in SurrealDB prior to version 2.2.2 involves improper enforcement of recursion limits in the scripting engine when native functions contain embedded JavaScript that issues new queries. An authenticated attacker can bypass these limits by chaining calls between native and JavaScript functions, triggering infinite recursion and exhausting server memory resources, potentially causing denial of service.
Potential Impact
An authenticated attacker can exploit this vulnerability to cause infinite recursion, leading to exhaustion of server memory. This can result in denial of service conditions, impacting the availability of the SurrealDB server. There is no indication of data confidentiality or integrity compromise from the provided information.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict scripting usage or limit authenticated user permissions 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 before 2.2.2 with scripting enabled fails to properly enforce recursion limits when native functions contain embedded JavaScript that issues new queries. Authenticated attackers can bypass the recursion limit by chaining native and JavaScript function calls to trigger infinite recursion and exhaust server memory.
CVSS v4.0
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in SurrealDB prior to version 2.2.2 involves improper enforcement of recursion limits in the scripting engine when native functions contain embedded JavaScript that issues new queries. An authenticated attacker can bypass these limits by chaining calls between native and JavaScript functions, triggering infinite recursion and exhausting server memory resources, potentially causing denial of service.
Potential Impact
An authenticated attacker can exploit this vulnerability to cause infinite recursion, leading to exhaustion of server memory. This can result in denial of service conditions, impacting the availability of the SurrealDB server. There is no indication of data confidentiality or integrity compromise from the provided information.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict scripting usage or limit authenticated user permissions 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: 07/18/2026, 16:21:34 UTC
Last updated: 07/18/2026, 19:29:55 UTC
Views: 11
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.