PatchSiren

PatchSiren cyber security CVE debrief

CVE-2025-71393 surrealdb CVE debrief

Authenticated attackers can bypass recursion limits in SurrealDB before 2.2.2 with scripting enabled, causing memory exhaustion via nested native and JavaScript function calls. This vulnerability allows attackers to trigger infinite recursion, leading to potential service disruption and memory exhaustion. Defenders should assess exposure and prioritize patching or mitigation, especially for instances with scripting enabled. The CVE description and NVD detail page provide information on the vulnerability, but specific details on exploitation or victim impact are limited.

Vendor
surrealdb
Product
Unknown
CVSS
MEDIUM 6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-07-18
Original CVE updated
2026-10-08
Advisory published
2026-07-18
Advisory updated
2026-10-08

Who should care

Defenders responsible for SurrealDB instances, especially those with scripting enabled, should assess exposure and prioritize patching or mitigation. This includes operators, platform administrators, vulnerability management teams, and security teams who need to review affected scope, severity, and vendor guidance.

Why it matters

CVE-2025-71393 is a medium-severity vulnerability in SurrealDB that can lead to memory exhaustion and service disruption. Defenders should prioritize patching or mitigating affected instances, especially those with scripting enabled.

  • Potential memory exhaustion leading to service disruption
  • Requires verification of affected versions and remediation status
  • Defenders must monitor for unusual query patterns
  • Patching or mitigating SurrealDB instances is a priority

Technical summary

SurrealDB before 2.2.2 with scripting enabled fails to 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. This vulnerability can lead to potential memory exhaustion and service disruption. Defenders should prioritize patching or mitigating affected instances, especially those with scripting enabled, to prevent potential memory exhaustion attacks.

Defensive priority

Defenders should prioritize patching or mitigating SurrealDB instances, especially those with scripting enabled, to prevent potential memory exhaustion attacks.

Recommended defensive actions

  • Patch SurrealDB to version 2.2.2 or later
  • Disable scripting if not required
  • Monitor for unusual query patterns
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The CVE description and NVD detail page provide information on the vulnerability, but specific details on exploitation or victim impact are limited. Evidence is based on CVE and NVD records. Defenders should verify affected versions, review vendor guidance, and monitor for unusual query patterns. Limited information is available on actual exploitation or specific victim impact.

Sources and references

Verified primary and authoritative sources

  • CVE-2025-71393 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2025-71393

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2025-71393 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2025-71393

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://github.com/surrealdb/surrealdb/security/advisories/GHSA-m7rc-8w7m-r9qr

    [email protected] - Vendor Advisory

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/surrealdb-before-memory-exhaustion-via-nested-functions

    [email protected] - Third Party Advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.