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

Crate bonsaidb-server

Dependencies

(30 total, 16 outdated, 1 insecure)

CrateRequiredLatestStatus
 async-acme^0.4.00.6.0out of date
 async-lock^23.5.0out of date
 async-trait^0.10.1.92up to date
 base64^0.21.00.23.1out of date
 bincode^13.0.0out of date
 bonsaidb-core=0.5.00.5.0up to date
 bonsaidb-local=0.5.00.5.0up to date
 bonsaidb-utils=0.5.00.5.0up to date
 cfg-if^11.0.5up to date
 clap^4.1.44.6.7up to date
 derive-where~1.2.01.7.0out of date
 env_logger^0.10.00.11.11out of date
 fabruic^0.1.00.1.0up to date
 flume^0.11.00.12.0out of date
 futures^0.30.3.34up to date
 hyper^0.141.12.0out of date
 itertools^0.11.00.15.0out of date
 log^0.40.4.35up to date
 parking_lot^0.12.00.13.0out of date
 pem^3.0.24.0.0out of date
 pot^3.0.03.0.1up to date
 rustls ⚠️^0.21.60.23.46insecure
 serde^11.0.229up to date
 sha-1^0.100.10.1up to date
 signal-hook^0.30.4.6out of date
 thiserror^12.0.21out of date
 tokio^1.16.11.54.1up to date
 tokio-rustls^0.24.10.26.6out of date
 tokio-tungstenite^0.20.00.30.0out of date
 tracing^0.10.1.44up to date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 anyhow^11.0.104up to date
 bonsaidb-core=0.5.00.5.0up to 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.