# GHSA-xcc6-f2jq-43x6: BLAKE2b produces wrong tag when using `reset()` with a different-length key

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-10-30T12:00:00.000Z
- Modified: 2026-10-30T11:15:02.170Z
- Also known as: RUSTSEC-2026-0428

## Description

## Summary

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

## Impact

Initialization `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.

## Resolution

Upgrade to `v0.17.16` or `v0.18.1`.

(As written by RustSec Advisory Database.)

## Affected

- orion (crates.io): from 0.0.0-0 before 0.17.16; from 0.18.0-0 before 0.18.1

## References

- <https://crates.io/crates/orion> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0428.html> (advisory)
- <https://github.com/orion-rs/orion/pull/690> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0428](https://rustsec.org/advisories/RUSTSEC-2026-0428.html), CC0-1.0, modified 2026-10-30

---

Page: https://cve.day/GHSA-xcc6-f2jq-43x6 · Whole record: https://cve.day/GHSA-xcc6-f2jq-43x6.json · Rebuilt by cve.day 2026-11-25T22:56:43.461Z
