SurrealDB before 2.2.2 Denial of Service via JavaScript Scripting
Impact
SurrealDB before 2.2.2 is vulnerable to a denial of service when JavaScript scripting is enabled. An authenticated attacker can submit long-running JavaScript functions to exhaust server resources. Scripting is disabled by default.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
surrealdb · VulnCheck
surrealdb
2 ranges
surrealdb · VulnCheck
surrealdb
Package identity
pkg:cargo/surrealdbExplore surrealdb →Identity supplied by VulnCheck. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
2.2.0 → before 2.2.2
semver versions
unaffected
2.2.2
semver versions
Other versions: unaffected
surrealdb · VulnCheck
surrealdb
2 ranges
surrealdb · VulnCheck
surrealdb
Package identity
pkg:cargo/surrealdbExplore surrealdb →Identity supplied by VulnCheck. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
0 → before 2.0.5
semver versions
unaffected
2.0.5
semver versions
Other versions: unaffected
surrealdb · VulnCheck
surrealdb
2 ranges
surrealdb · VulnCheck
surrealdb
Package identity
pkg:cargo/surrealdbExplore surrealdb →Identity supplied by VulnCheck. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
2.1.0 → before 2.1.5
semver versions
unaffected
2.1.5
semver versions
Other versions: unaffected
Original source description
SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 does not enforce a default execution-time limit on embedded JavaScript scripting functions when the scripting capability is explicitly enabled (via --allow-scripting or --allow-all). An authenticated attacker can submit long-running JavaScript functions to exhaust server resources and cause a denial of service. Scripting is disabled by default.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2025-71396View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Environment requirements
These conditions apply together as specified by the publisher. A matching product name alone does not establish exposure.
VulnCheck · platform conditions
Any condition may hold
Vulnerable product
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*From (inclusive): 2.2.0
Before: 2.2.2
Vulnerable product
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*Before: 2.0.5
Vulnerable product
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*From (inclusive): 2.1.0
Before: 2.1.5
Original applicability statements
[
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.2.2",
"versionStartIncluding": "2.2.0"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.0.5"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.1.5",
"versionStartIncluding": "2.1.0"
}
]
}
]
}
]Contributing organizations · 2
Assigning organization
Additional data publisher
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.