CVE-2026-121417 PUBLISHED

SurrealDB before 3.3.0 Use-After-Free via affinitypool spawn_local in KV Backends

Assigner: VulnCheck
Reserved: 03.11.2026 Published: 03.11.2026 Updated: 03.11.2026

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.

Metrics

CVSS 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
CVSS Score: 8.8

Product Status

Vendor surrealdb
Product surrealdb
Versions Default: unaffected
  • affected from 0 to 3.3.0 (excl.)
  • Version 3.3.0 is unaffected

Credits

  • YZL0v3ZZ reporter

References

Problem Types

  • Use After Free CWE