llamaCVEVulnerability Intelligence
/
Advisory · RustSec · crates.io · surrealdb-core

RUSTSEC-2026-0454

Data race and double free via unsound `Send`/`Sync` in `reblessive`

An attacker can trigger data races and double frees from safe Rust code, corrupting memory in the query executor.

Parche disponible
Descargar PNG JSON
CVSS
—
N/D
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición16 dDesde la divulgación, 3 nov 2026, 7:00 a. m.
Detección3 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 4.0.0
Monitoreo
Detectada
Verificada
3 nov 26
6 nov 26
16 nov 26
19 nov 26
3 nov 26
7 nov 26
11 nov 26
15 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada RUSTSEC-2026-0454 divulgada
Remediación Parche 4.0.0 surrealdb-core · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 6 nov 2026

Memory-safety flaws (data races and double frees) in the reblessive Rust library, which SurrealDB's query executor uses to run SurrealQL statements, can be triggered from safe Rust code. The library wrongly marks its types as safe to share and send across threads.

Descripción del advisory
Texto original · RustSec · en inglés

`dbs::Executor` drives every SurrealQL statement through `reblessive::tree::TreeStack`. In `reblessive 0.4.3` the runtime types unconditionally assert `Send`/`Sync` (`unsafe impl Send/Sync for Stack`, `TreeStack` and `Runner`), while the public entry points accept any future without a `Send` bound and store it type-erased in a bump allocator.

Two safe-code consequences follow. First, `Runner::step_async`/`finish_async` return driver futures tied to the stack borrow rather than to `&mut self`, so a driver future can be duplicated; because `Stack` is `Sync` those futures are `Send`, and polling two copies on different threads runs `drive_top_task` concurrently — racy `Cell`/`UnsafeCell` access, double `pop_task()`/`pop_dealloc()` (double drop / double free) and a non-atomic `Option::take`. Second, `TreeStack: Send` lets safe code move a driver whose type-erased future captures `!Send` state (`Rc`, `RefCell`) to another thread while the creating thread keeps an alias of that state.

No `unsafe` is needed at the call site. `surrealdb-core`'s own query futures are `Send` only because of the unsound `unsafe impl Send for TreeStack`, while the captured `&mut tree::Stk` is deliberately `!Send`.

The unsound dependency was removed in 4.0.0 and the parser now uses plain recursion (commit `75407c4bcc`).

Versiones

Rangos afectados

Afectada Corregida Última
surrealdb-core≥ 0.0.0-0 < 4.0.0
0.0.0-0
4.0.0
4.0.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iosurrealdb-core
Corregida 4.0.0 0 d 4.0.1 no afectada
Versiones corregidas4.0.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://rustsec.org/advisories/RUSTSEC-2026-0454.html
Otrahttps://crates.io/crates/surrealdb-core
Otrahttps://github.com/surrealdb/surrealdb/commit/75407c4bccc6d6679d7d6e7a18af0065afdded7d

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.