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

State
Published
Severity
8.8 High
Published
Nov 3, 2026
Updated
Nov 3, 2026
Reserved
Nov 3, 2026

Read the record on cve.org

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.

ProductVersions
surrealdb surrealdbbefore 3.3.0 Affected3.3.0 Not Affected

Weaknesses

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.