{"id":"EUVD-2025-210488","revision":"3069310d9bc6421c8a8a000adb208896","records":[{"revision":"3069310d9bc6421c8a8a000adb208896","observedAt":"2026-10-30T01:03:50.856+00:00","statement":{"source":"euvd","id":"EUVD-2025-210488","aliases":["CVE-2025-71397","GHSA-33m9-4q46-9q55"],"title":"SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 allows authenticated users with OWNER or EDITOR permissions (at the root, namespace, or database level) to define custom database functions via DEFINE FUNCTION using nested …","description":"SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 allows authenticated users with OWNER or EDITOR permissions (at the root, namespace, or database level) to define custom database functions via DEFINE FUNCTION using nested FOR loops. Although a single loop's iteration count is constrained, nesting multiple loops (e.g., each with 1,000,000 iterations) is not, so an attacker can execute a function that consumes all server CPU time. Configured timeouts do not stop the execution, rendering the server unresponsive to other queries and connections until it is manually restarted.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 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","score":7.1,"severity":null}],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pxw4-94j3-v9pf","https://www.vulncheck.com/advisories/surrealdb-before-cpu-exhaustion-via-nested-for-loops"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-210488","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 18, 2026, 1:10:15 PM","dateUpdated":"Oct 29, 2026, 9:15:23 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2025-210488","identifiers":["EUVD-2025-210488","CVE-2025-71397","GHSA-33m9-4q46-9q55"]},"retained":false,"historicalAffected":[]}],"coverage":[]}