GHSA-6g9r-xqrf-34xh
SurrealDB versions before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 do not enforce a default execution-time limit on embedded JavaScript functions when scripting is enabled. An authenticated attacker can exploit this by submitting long-running JavaScript code to exhaust server resources, causing a denial of service. Scripting is disabled by default, reducing exposure unless explicitly enabled.
AI Analysis
Technical Summary
This vulnerability in SurrealDB arises from the lack of a default execution-time limit on embedded JavaScript scripting functions when scripting capabilities are enabled via --allow-scripting or --allow-all flags. Without this limit, an authenticated attacker can submit long-running scripts that consume excessive server resources, leading to denial of service. The vulnerability affects SurrealDB versions prior to 2.0.5, 2.1.x versions before 2.1.5, and 2.2.x versions before 2.2.2. By default, scripting is disabled, so the risk is limited to environments where scripting is explicitly enabled.
Potential Impact
An authenticated attacker can cause a denial of service by submitting long-running JavaScript functions that exhaust server resources. This can degrade or disrupt the availability of the SurrealDB service. There is no indication of data confidentiality or integrity impact. The vulnerability requires scripting to be enabled, which is not the default configuration.
Mitigation Recommendations
Upgrade SurrealDB to version 2.0.5 or later, 2.1.5 or later, or 2.2.2 or later, where this issue is addressed by enforcing execution-time limits on embedded JavaScript functions. If upgrading is not immediately possible, ensure that scripting is not enabled unless necessary, as it is disabled by default. No additional vendor advisory or patch links are provided; check official SurrealDB resources for confirmation and updates.
GHSA-6g9r-xqrf-34xh
Description
SurrealDB versions before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 do not enforce a default execution-time limit on embedded JavaScript functions when scripting is enabled. An authenticated attacker can exploit this by submitting long-running JavaScript code to exhaust server resources, causing a denial of service. Scripting is disabled by default, reducing exposure unless explicitly enabled.
CVSS v4.0
Affected software
pkg:github/surrealdb/surrealdbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in SurrealDB arises from the lack of a default execution-time limit on embedded JavaScript scripting functions when scripting capabilities are enabled via --allow-scripting or --allow-all flags. Without this limit, an authenticated attacker can submit long-running scripts that consume excessive server resources, leading to denial of service. The vulnerability affects SurrealDB versions prior to 2.0.5, 2.1.x versions before 2.1.5, and 2.2.x versions before 2.2.2. By default, scripting is disabled, so the risk is limited to environments where scripting is explicitly enabled.
Potential Impact
An authenticated attacker can cause a denial of service by submitting long-running JavaScript functions that exhaust server resources. This can degrade or disrupt the availability of the SurrealDB service. There is no indication of data confidentiality or integrity impact. The vulnerability requires scripting to be enabled, which is not the default configuration.
Mitigation Recommendations
Upgrade SurrealDB to version 2.0.5 or later, 2.1.5 or later, or 2.2.2 or later, where this issue is addressed by enforcing execution-time limits on embedded JavaScript functions. If upgrading is not immediately possible, ensure that scripting is not enabled unless necessary, as it is disabled by default. No additional vendor advisory or patch links are provided; check official SurrealDB resources for confirmation and updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6g9r-xqrf-34xh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-71396"]
- Ecosystems
- []
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a5ba17e44ab8fbf7c789bae
Added to database: 07/18/2026, 15:53:34 UTC
Last enriched: 07/18/2026, 16:22:46 UTC
Last updated: 07/18/2026, 17:19:45 UTC
Views: 4
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.