This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate surrealdb

Dependencies

(33 total, 11 outdated, 2 insecure)

CrateRequiredLatestStatus
 bincode^1.3.33.0.0out of date
 async-channel^1.9.02.5.0out of date
 chrono^0.4.310.4.45up to date
 dmp^0.2.00.2.3up to date
 flume^0.11.00.12.0out of date
 futures^0.3.290.3.34up to date
 futures-concurrency^7.4.37.7.1up to date
 geo^0.27.00.33.1out of date
 indexmap^2.1.02.14.2up to date
 native-tls^0.2.110.2.18up to date
 once_cell^1.18.01.21.4up to date
 path-clean^1.0.11.0.1up to date
 pharos^0.5.30.5.3up to date
 reqwest^0.11.220.13.5out of date
 revision^0.7.00.30.0out of date
 ring^0.17.70.17.14up to date
 rust_decimal^1.33.11.43.0up to date
 rustls ⚠️^0.21.110.23.46insecure
 semver^1.0.201.0.28up to date
 serde^1.0.1931.0.229up to date
 serde_json^1.0.1081.0.154up to date
 surrealdb-core ⚠️=2.0.0-1.5.64.0.1insecure
 thiserror^1.0.502.0.21out of date
 tokio^1.34.01.54.1up to date
 tokio-tungstenite^0.20.10.30.0out of date
 tokio-util^0.7.100.7.20up to date
 tracing^0.1.400.1.44up to date
 trice^0.4.00.4.0up to date
 url^2.5.02.5.8up to date
 uuid^1.6.11.29.2up to date
 wasm-bindgen-futures^0.4.390.4.80up to date
 wasmtimer^0.2.00.4.5out of date
 ws_stream_wasm^0.7.40.7.5up to date

Dev dependencies

(16 total, 10 outdated)

CrateRequiredLatestStatus
 criterion^0.5.10.8.2out of date
 env_logger^0.10.10.11.11out of date
 flate2^1.0.281.1.11up to date
 hashbrown^0.14.50.17.1out of date
 pprof^0.13.00.15.0out of date
 radix_trie^0.2.10.3.0out of date
 rand^0.8.50.10.3out of date
 regex^1.10.21.13.1up to date
 serial_test^2.0.04.0.1out of date
 temp-dir^0.1.110.2.0out of date
 test-log^0.2.130.2.21up to date
 time^0.3.300.3.55up to date
 tokio^1.34.01.54.1up to date
 tracing-subscriber^0.3.180.3.23up to date
 ulid^1.1.03.0.0out of date
 wiremock^0.5.220.6.5out of date

Security Vulnerabilities

rustls: `Debug` impls for client session values expose TLS secrets

RUSTSEC-2026-0346

The Debug implementations of Tls12ClientSessionValue and Tls13ClientSessionValue were derived, and so included the TLS 1.2 master secret or TLS 1.3 resumption PSK in their output.

Custom ClientSessionStore implementations that format these values with Debug (for example, when logging) could disclose these secrets to readers of the logs. This conflicts with rustls's key-material redaction policy.

Ordinary connection and built-in session cache Debug output is redacted and is not affected.

rustls: Unauthenticated ServerHello can downgrade later connections to classical key exchange

RUSTSEC-2026-0349

The client recorded the server-selected key exchange group for each server name when processing the ServerHello, before the server was authenticated. This record is used to predict which key share to send in future ClientHellos to that server name.

A network attacker can answer one connection attempt with a ServerHello selecting X25519, and then close the connection. Later ClientHellos for that name carry only an X25519 key share, while supported_groups still lists X25519MLKEM768 first. If the genuine server accepts that share rather than sending a HelloRetryRequest for its preferred hybrid group, the handshake completes with classical-only key exchange and no error. This persists for as long as the entry stays in the client's session store.

The impact is loss of post-quantum confidentiality for affected connections ("harvest now, decrypt later"). There is no key compromise and no authentication bypass.

The following are not affected:

  • connections to servers which send a HelloRetryRequest for their preferred group,
  • clients with resumption disabled (as nothing is stored), and
  • other server names.

This behaviour is discussed in draft-ietf-tls-key-share-prediction, so the practical impact depends largely on server policy.

surrealdb-core: Data race and double free via unsound `Send`/`Sync` in `reblessive`

RUSTSEC-2026-0454

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