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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- GitHub Security Advisory (GHSA-pm86-cc75-q463) exploit vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends third-party-advisory
- crates.io product
- rustsec.org vendor-advisory
- github.com
- ENISA EUVD EUVD-2026-115949 third-party-advisory