Technical impact
SurrealDB before 3.3.0 is vulnerable to a use‑after‑free because KV backends pass borrowed transaction state into affinitypool::spawn_local closures that depend on future drop for safety. If a Rust embedder leaks a dispatched future, such as by using mem::forget, and subsequently drops the transaction, pool workers may read or write memory that has already been freed. This results in crashes or untrusted memory corruption that could compromise confidentiality, integrity, or availability of the database.
Affected Systems
The issue affects SurrealDB versions earlier than 3.3.0 released by SurrealDB. Exact version ranges are not specified, but any deployment of SurrealDB before the 3.3.0 release is susceptible. No other vendors or products are listed as affected.
Risk and Exploitability
The CVSS score of 8.8 classifies the flaw as high severity. EPSS information is not available and the vulnerability is not listed in CISA KEV, suggesting limited known exploitation. Inferred attack vectors involve a Rust embedder that can trigger future leaks; an attacker would need the ability to influence the embedding code or supply data causing mem::forget usage. While exploitation is not trivially straightforward, the high local impact and memory corruption risk warrant close attention.