Skip to main content
← All vulnerabilities
CVE-2025-71395GHSA-3633-G6MG-P6QQ

SurrealDB before 2.2.2 Memory Exhaustion via string::replace

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 versions before 2.2.2 contain a memory exhaustion vulnerability in the string::replace function that fails to restrict resulting string length when using regex patterns. An authenticated attacker can craft a malicious query to exhaust server memory through unbounded string allocations, causing denial of service.

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