All vulnerabilities

crates.io

CVE-2026-121417

SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends

Severity
High 8.8
Published
3 Nov 2026
Last changed
3 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.3.0
Exploit chance
0.2% in the next 30 daysHigher than 9% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Use after free (CWE-416)
Attack
Needs local access · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Sources
CVE Program

Description

SurrealDB before 3.3.0 contains a use-after-free vulnerability in surrealdb-core KV backends that pass borrowed transaction state into affinitypool::spawn_local closures relying on future Drop for safety. Rust embedders that leak a dispatched future (e.g. via mem::forget) and drop the transaction cause pool workers to read and write freed memory, risking crashes or memory corruption.

From the CVE Program.

Affected software

SoftwareAffected versions
surrealdbcrates.io · osv:crates.io:surrealdb
  • Every version before 3.3.0

About surrealdb

Downloads in the last 90 days (crates.io)
611,769crates.io, 24 Nov 2026
Total downloads (crates.io)
1,955,161crates.io, 24 Nov 2026

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-121417