Vulnerability in Surrealdb
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.
EPSS: 0.003 (17.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Surrealdb — versions 0, 2.2.2, 2.1.5
Weakness classification (CWE)
References
- disclosure@vulncheck.com (vendor-advisory, Vendor Advisory)
- disclosure@vulncheck.com (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2025-71393?
- CVE-2025-71393 is a medium-severity vulnerability in Surrealdb, classified under Uncontrolled Recursion. CVSS score: 6.5/10. Published 2026-07-18.
- How severe is CVE-2025-71393?
- Medium severity. CVSS v3 base score is 6.5 out of 10.