RustSeverity: MediumStatus: Published

HandshakeState error rollback does not restore the CipherState

HandshakeState took a checkpoint before write_message and read_message and restored it on error, but the checkpoint did not include the CipherState key and nonce. Retrying write_message could encrypt again under the same AEAD key and nonce (CWE-323). Retrying read_message could leave the handshake unable to accept the genuine message (CWE-460). The snow crate versions <= 0.10.1 are affected. Patched in 0.10.2 and 0.9.7. There is no CVE. This was discovered in parallel by @ucsurf and @Dangel165.

Impact

The advisory title is “snow: HandshakeState error rollback does not restore the CipherState, which leads to AEAD key/nonce reuse when write_message is retried (and a stuck handshake when read_message is retried).”

HandshakeState::write_message and read_message take a checkpoint before processing a message and restore it on error, so a failed call can be retried. The checkpoint covers the handshake hash and chaining key. It does not cover the CipherState key and nonce (CWE-323, CWE-460).

Retrying write_message on the same HandshakeState after an error can encrypt again under a key and nonce the failed attempt already used. Retrying read_message after an error can leave the handshake unable to accept the genuine message.

Affected versions and fix

The snow crate, versions <= 0.10.1, is affected. Patched releases are 0.10.2 and 0.9.7.

Jake McGinty (mcginty) fixed this in 1727bba, “handshake: add missing checkpoint and restore for cipher key”. The 0.10.2 changes are in the v0.10.1…v0.10.2 compare. Release 0.9.7 is on crates.io. There is no GitHub tag for 0.9.7.

The published advisory is GHSA-hxgq-9wwm-g797. GitHub rates it medium, with CVSS 3.1 score 4.8 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L). There is no CVE. mcginty published the advisory on 2026-12-01. The advisory text says: “Note this was discovered in parallel by @ucsurf and @Dangel165 - thank you both for the report.”

Timeline

  1. Found
  2. Reported via private vulnerability report
  3. Advisory published
  4. Entry last updated

Machine-readable: JSON · Markdown · ID security/rust/mcginty__snow/2026-10-11-handshake-error-rollback-cipherstate

If this work is useful to you, you can support it on Buy Me a Coffee.