{"id":"CVE-2025-71395","published":"2026-07-18T13:10:13Z","modified":"2026-10-29T21:15:22Z","title":"SurrealDB before 2.2.2 Memory Exhaustion via string::replace","vendor":"surrealdb","product":"surrealdb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0045,"percentile":0.31054,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-3633-g6mg-p6qq","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-memory-exhaustion-via-string-replace","tags":["third-party-advisory"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":6.21},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"surrealdb","affectedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":[">= 2.2.0, < 2.2.2"]},{"vendor":"surrealdb","product":"surrealdb","versions":[">= 2.1.0, < 2.1.5"]},{"vendor":"surrealdb","product":"surrealdb","versions":["< 2.0.5"]}],"fixedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["2.2.2"]},{"vendor":"surrealdb","product":"surrealdb","versions":["2.1.5"]},{"vendor":"surrealdb","product":"surrealdb","versions":["2.0.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-22T19:09:25.666132Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-210486","exploited":false,"provenance":"source"}}