cvelo
P2 · HighCVSS 7.8EPSS 0.2%

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

  • CVE-2026-121417
  • GHSA-7wmw-j7vc-669r
  • GHSA-pm86-cc75-q463
  • RUSTSEC-2026-0453
  • EUVD-2026-115949

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.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • surrealdb

    Affected versionsFixed in
    before 3.3.03.3.0
  • surrealdbcrates.io

    Affected versionsFixed in
    from 0.0.0-0 to before 3.3.03.3.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.