CVE-2025-71397: 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 ED
CVE-2025-71397 is a medium-severity flaw (CVSS 6.5) affecting surrealdb. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.6% (top 54%) |
| CISA exploited list | No |
| Weakness | CWE-835 |
| Published | 2026-07-18 |
| Last modified | 2026-09-29 |
Last updated 2026-09-29 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-71397?
surrealdb: upgrade to 2.0.5, 2.1.5, 2.2.2. Exact commands for each OS are on this page.
Is CVE-2025-71397 being exploited?
CVE-2025-71397 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-71397 affect?
CVE-2025-71397 affects surrealdb. Severity is medium (CVSS 6.5). 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
How urgent is CVE-2025-71397?
Priority 34/100. No elevated risk signals yet.
Related CVEs
- CVE-2026-63734 MEDIUM 4.9 UPGRADE SurrealDB versions before 3.2.0 contain a denial of service vulnerability in the SurrealML header parser that
- CVE-2026-63761 MEDIUM 4.3 UPGRADE SurrealDB before 3.1.0 silently substitutes the ES384 algorithm when a JWT access method is configured with AL
- CVE-2026-63746 MEDIUM 6.5 UPGRADE SurrealDB versions before 3.1.0 fail to enforce table SELECT permissions when traversing graph edges or back-r
- CVE-2026-63745 MEDIUM 5.4 UPGRADE SurrealDB versions before 3.1.0 contain an authorization bypass vulnerability where authenticated users can sp
- CVE-2025-71390 HIGH 8.8 UPGRADE SurrealDB before 2.2.6, 2.3.6, and 2.1.8 (and 3.0.0-alpha.7 and earlier) fails to validate DNS-resolved hostna