# CVE-2026-121417: SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends

- Severity: High 8.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-19T12:00:00.000Z
- Modified: 2026-11-06T15:55:56.754Z
- Also known as: RUSTSEC-2026-0453, GHSA-pm86-cc75-q463
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 3.3.0 (not affected: 3.3.0)
- surrealdb (crates.io): from 0.0.0-0 before 3.3.0

## Every score

- VulnCheck: CVSS:4.0 8.8 High `CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pm86-cc75-q463> (exploit, vendor-advisory)
- <https://github.com/surrealdb/surrealdb/commit/17584a181979f04f2aaad867332c22db1caa511a> (patch)
- <https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends> (third-party-advisory)
- <https://crates.io/crates/surrealdb> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0453.html> (advisory)
- <https://github.com/surrealdb/surrealdb/commit/8156ff691b1861814199e5e3372c81609b68db7f> (web)

## Sources

- CVE List: [CVE-2026-121417](https://www.cve.org/CVERecord?id=CVE-2026-121417), CVE Terms of Use, modified 2026-11-03
- RustSec Advisory Database: [RUSTSEC-2026-0453](https://rustsec.org/advisories/RUSTSEC-2026-0453.html), CC0-1.0, modified 2026-11-06
- NVD: [CVE-2026-121417](https://nvd.nist.gov/vuln/detail/CVE-2026-121417), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-121417 · Whole record: https://cve.day/CVE-2026-121417.json · Rebuilt by cve.day 2026-11-25T22:59:48.443Z
