CVE-2026-121417 SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends
- Exploited in the wild
- Not known
- Fix
- 3.3.0
What is CVE-2026-121417?
CVE-2026-121417 is a high-severity vulnerability in surrealdb, published on 3 Nov 2026.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2026-121417?
1 open source package ship an affected version, including surrealdb.
| Package | Affected | Fixed in |
|---|---|---|
surrealdb crates.iopkg:cargo/surrealdb | From 0.0.0-0 | 3.3.0 |
Status by vendor (1)
| Who | Release | Status | Packages |
|---|---|---|---|
| Upstream | fixed | surrealdb (3.3.0)pkg:cargo/surrealdb |
How do I fix CVE-2026-121417?
Upgrade surrealdb to 3.3.0 or later.
Is CVE-2026-121417 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-121417 exists.
Sources
Also known as GHSA-7wmw-j7vc-669r, GHSA-pm86-cc75-q463, RUSTSEC-2026-0453.