{
  "id": "security/rust/mcginty__snow/2026-10-11-handshake-error-rollback-cipherstate",
  "title": "HandshakeState error rollback does not restore the CipherState",
  "category": "security",
  "type": "nonce-reuse",
  "severity": "medium",
  "cvss": {
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L",
    "score": 4.8
  },
  "ecosystem": "rust",
  "project": {
    "owner": "mcginty",
    "repo": "snow",
    "url": "https://github.com/mcginty/snow"
  },
  "affected_versions": [
    "snow <= 0.10.1"
  ],
  "fixed_version": "0.10.2 and 0.9.7",
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-hxgq-9wwm-g797",
    "cve_id": null,
    "url": "https://github.com/mcginty/snow/security/advisories/GHSA-hxgq-9wwm-g797",
    "reported_at": "2026-10-11T00:00:00+03:00",
    "published_at": "2026-12-01T05:03:28+03:00"
  },
  "summary": "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.",
  "discovered_at": "2026-10-11T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-12-01T09:45:00+03:00",
  "pr": null,
  "references": [
    "https://github.com/mcginty/snow/commit/1727bba89f9b576d17db102811ad50da51ef6af2",
    "https://github.com/mcginty/snow/compare/v0.10.1...v0.10.2",
    "https://crates.io/crates/snow/0.9.7"
  ]
}
