{"id":"GHSA-xcc6-f2jq-43x6","aliases":["GHSA-xcc6-f2jq-43x6","RUSTSEC-2026-0428"],"related":[],"kind":"vulnerability","state":"published","title":"BLAKE2b produces wrong tag when using `reset()` with a different-length key","summary":"## Summary\n\n`hazardous::mac::blake2b::Blake2b::reset()` does not correctly reset the state when a key is supplied that has a different length than the one used upon initialization with `hazardous::mac::blake2b::Blake2b::new()`, because it errorneously uses a cached length. \n\n## Impact\n\nInitialization `hazardous::mac::blake2b::Blake2b` with a key of some length `N`, followed by a reset with a key of length `!= N` will produce an incorrect BLAKE2b tag, causing `hazardous::mac::blake2b::Blake2b::verify()` to fail. This means under honest protocol conditions, parties could experience failing tag verifications.\n\n## Resolution\n\nUpgrade to `v0.17.16` or `v0.18.1`.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"## Summary\n\n`hazardous::mac::blake2b::Blake2b::reset()` does not correctly reset the state when a key is supplied that has a different length than the one used upon initialization with `hazardous::mac::blake2b::Blake2b::new()`, because it errorneously uses a cached length. \n\n## Impact\n\nInitialization `hazardous::mac::blake2b::Blake2b` with a key of some length `N`, followed by a reset with a key of length `!= N` will produce an incorrect BLAKE2b tag, causing `hazardous::mac::blake2b::Blake2b::verify()` to fail. This means under honest protocol conditions, parties could experience failing tag verifications.\n\n## Resolution\n\nUpgrade to `v0.17.16` or `v0.18.1`.","format":"markdown","source":"rustsec"}],"published":"2026-10-30T12:00:00.000Z","modified":"2026-10-30T11:15:02.170Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.17.16"},{"type":"semver","introduced":"0.18.0-0","status":"affected","fixed":"0.18.1"}],"ecosystem":"crates.io","package":"orion","purl":"pkg:cargo/orion","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/orion","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0428.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/orion-rs/orion/pull/690","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0428","url":"https://rustsec.org/advisories/RUSTSEC-2026-0428.html","licence":"CC0-1.0","modified":"2026-10-30T11:15:02.170Z"}],"updatedAt":"2026-11-25T22:56:43.461Z"}