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
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.
| Product | Versions |
|---|---|
| surrealdb surrealdb | before 3.3.0 Affected3.3.0 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.8 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-416 Use After Free
References
- GitHub Security Advisory (GHSA-pm86-cc75-q463)Vendor Advisory
- Patch CommitPatch
- VulnCheck Advisory: SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV BackendsThird-Party Advisory
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.