Advisory

RUSTSEC-2026-0428

Also known as: GHSA-xcc6-f2jq-43x6

Summary

BLAKE2b produces wrong tag when using reset() with a different-length key

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-10-30 12:00 UTC
Modified
2026-10-30 11:15 UTC

Affected packages and fixes

orion

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.17.16, introduced 0.18.0-0, fixed 0.18.1 (semver)

Fixed versions

0.17.16, 0.18.1

Fix

  • Fixed version 0.17.16
    cargo update -p orion --precise 0.17.16
  • Fixed version 0.18.1
    cargo update -p orion --precise 0.18.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences