Skip to main content
VulnerabilityPublished Updated

Surrealdb: Use-after-free

Affects surrealdbSource GCVE Database

0

CVSS 7.8 High : upgrade to 3.3.0 soon.

Data as of 6 Nov 2026, 16:48 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.3.0
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

What to do

Upgrade surrealdb to 3.3.0.

Affected software

ProductAffectedFixed in
crates.iosurrealdbpkg:cargo/surrealdbOther threatsAffected
  • >=0.0.0-0 <3.3.0
Fixed in
  • 3.3.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade SurrealDB to version 3.3.0 or later, which includes the fix by upgrading affinitypool to 0.8.0 and marking spawn_local as unsafe, requiring callers to prevent future leaks. No other mitigation is indicated or required as the patch fully addresses the vulnerability.

Description

SurrealDB versions prior to 3.3.0 contain a use-after-free vulnerability in the KV backends due to leaked futures from affinitypool::spawn_local. This flaw arises when non-'static borrowed state is moved into affinity-pool closures and the returned future is leaked, allowing pool workers to access freed memory. The issue affects multiple methods including count, scan, compact, and cursor iteration. Version 3.3.0 upgrades affinitypool to 0.8.0, making spawn_local unsafe and requiring callers to ensure no leaks occur, thereby fixing the vulnerability.

References

Community reviews

Loading reviews…