Skip to main content
← All vulnerabilities
CVE-2025-71393GHSA-M7RC-8W7M-R9QR

SurrealDB before 2.2.2 Memory Exhaustion via Nested Functions

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.2, 2.1.5, 2.0.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • surrealdb surrealdb

    From 2.2.0 · fixed in 2.2.2

  • surrealdb surrealdb

    From 2.1.0 · fixed in 2.1.5

  • surrealdb surrealdb

    fixed in 2.0.5

  • surrealdbcrates.io

    From 2.2.0 · fixed in 2.2.2

  • surrealdbcrates.io

    From 2.1.0 · fixed in 2.1.5

  • surrealdbcrates.io

    fixed in 2.0.5

References 2

GitHub · surrealdb/surrealdb

vulncheck.com