CVE-2025-71393
MEDIUM 6.0CVSS 4.0SurrealDB vulnerable to memory exhaustion via nested functions and scripts
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.
- Published
- 18 Jul 2026
- Last modified
- 29 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-674
- Also known as
- GHSA-m7rc-8w7m-r9qr
- Sources
- NVDJSONOSV GHSA-m7rc-8w7m-r9qrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* |
< 2.0.5 | 2.0.5 |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* |
>= 2.1.0, < 2.1.5 | 2.1.5 |
| NVD | surrealdb | surrealdbcpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:* |
>= 2.2.0, < 2.2.2 | 2.2.2 |
| OSV | crates.io | surrealdb | >= 2.2.0, < 2.2.2 | 2.2.2 |
| OSV | crates.io | surrealdb | >= 2.1.0, < 2.1.5 | 2.1.5 |
| OSV | crates.io | surrealdb | < 2.0.5 | 2.0.5 |
References
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m7rc-8w7m-r9qr · Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/surrealdb-before-memory-exhaustion-via-nested-functions · Third Party Advisory
- https://github.com/surrealdb/surrealdb · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 18 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Apr 2025)