Advisory record · GHSA-pxw4-94j3-v9pf

SurrealDB CPU exhaustion via custom functions result in total DoS

CVSS 7.1 HighEPSS 0.0055 · 46th percentile

Published by the GitHub Advisory Database at 11 Apr 2025, 14:09 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
surrealdbcrates.io>=2.2.0, <2.2.2 || >=2.1.0, <2.1.5 || <2.0.52.2.2, 2.1.5, 2.0.5
Identifiers
GHSA-pxw4-94j3-v9pf · CVE-2025-71397
Weakness (CWE)
CWE-835
Published
11 Apr 2025
Updated
19 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

SurrealDB versions before 2.0.5, from 2.1.0 before 2.1.5, and from 2.2.0 before 2.2.2 are affected. An authenticated user with OWNER or EDITOR permissions can define a custom function with nested for-loops that exhausts server CPU, making the server unresponsive to other users until it is manually restarted. Upgrade to 2.0.5, 2.1.5, 2.2.2, or later. If upgrading is not possible, restrict custom functions using the --allow-functions or --deny-functions options.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.1 High 4.0 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0055, the 46th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:18 UTC First seen by agentprime
  2. 31 Oct 2026, 15:18 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.