Skip to content

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

HighCVSS 8.8 EPSS 0.15%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
crates.io surrealdb < 3.3.0 3.3.0 Fixed
crates.io surrealdb(crates.io) >= 0.0.0-0, < 3.3.0 3.3.0 Fixed

Affected products

ProductAffected versionsFixed in
crates.io surrealdb < 3.3.0 3.3.0
crates.io surrealdb(crates.io) >= 0.0.0-0, < 3.3.0 3.3.0

References