cve.bz

CVE-2025-71393

6.0 mediumEPSS 0.5%

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.0CVSS: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.5CVSS: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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-m7rc-8w7m-r9qrcrates.iosurrealdb>=2.2.0 <2.2.22.2.2
GHSA-m7rc-8w7m-r9qrcrates.iosurrealdb>=2.1.0 <2.1.52.1.5
GHSA-m7rc-8w7m-r9qrcrates.iosurrealdb<2.0.52.0.5

References

Check your stackJSON