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.
- CVSS 4.0
- 6.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - EPSS
- 0.5% chance of exploitation in the next 30 days; higher than 39% of CVEs (scores of 2026-10-29)
- CWE
- CWE-674
- Published
- Modified
- Record from
- the NVD, synced
Affected
- surrealdb:surrealdb
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-m7rc-8w7m-r9qr | crates.io | surrealdb | >=2.2.0 <2.2.2 | 2.2.2 |
| GHSA-m7rc-8w7m-r9qr | crates.io | surrealdb | >=2.1.0 <2.1.5 | 2.1.5 |
| GHSA-m7rc-8w7m-r9qr | crates.io | surrealdb | <2.0.5 | 2.0.5 |