SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends
- CVE-2026-121417
- GHSA-7wmw-j7vc-669r
- GHSA-pm86-cc75-q463
- RUSTSEC-2026-0453
- EUVD-2026-115949
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.
Text from the CVE.org record.
Recommendation
surrealdb
- If you run a version before 3.3.0update to 3.3.0 or later
surrealdb
- If you run a version from 0.0.0-0 to before 3.3.0update to 3.3.0 or laterMajor version change: expect breaking changessurrealdb 3.3.0 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
surrealdb
Affected versions Fixed in before 3.3.0 3.3.0 surrealdbcrates.io
Affected versions Fixed in from 0.0.0-0 to before 3.3.0 3.3.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.