Advisory

RUSTSEC-2019-0019

Also known as: CVE-2019-16143, GHSA-4x25-pvhw-5224

Summary

HMAC-BLAKE2 algorithms compute incorrect results

Details

When used in conjunction with the Hash-based Message Authentication Code (HMAC),
the BLAKE2b and BLAKE2s implementations in blake2 crate versions prior to
v0.8.1 used an incorrect block size (32-bytes instead of 64-bytes for BLAKE2s,
and 64-bytes instead of 128-bytes for BLAKE2b), causing them to miscompute the
MacResult.

The v0.8.1 release of the blake2 crate uses the correct block sizes.

Note that this advisory only impacts usage of BLAKE2 with HMAC, and does not
impact Digest functionality.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2019-08-25 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

blake2

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.8.1 (semver)

Fixed versions

0.8.1

Fix

  • Fixed version 0.8.1
    cargo update -p blake2 --precise 0.8.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