{"id":"RUSTSEC-2019-0019","summary":"HMAC-BLAKE2 algorithms compute incorrect results","details":"When used in conjunction with the Hash-based Message Authentication Code (HMAC),\nthe BLAKE2b and BLAKE2s implementations in `blake2` crate versions prior to\nv0.8.1 used an incorrect block size (32-bytes instead of 64-bytes for BLAKE2s,\nand 64-bytes instead of 128-bytes for BLAKE2b), causing them to miscompute the\n`MacResult`.\n\nThe v0.8.1 release of the `blake2` crate uses the correct block sizes.\n\nNote that this advisory only impacts usage of BLAKE2 with HMAC, and does not\nimpact `Digest` functionality.","aliases":["CVE-2019-16143","GHSA-4x25-pvhw-5224"],"modified":"2023-11-08T04:01:16.407154Z","published":"2019-08-25T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/blake2"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2019-0019.html"},{"type":"REPORT","url":"https://github.com/RustCrypto/MACs/issues/19"}],"affected":[{"package":{"name":"blake2","ecosystem":"crates.io","purl":"pkg:cargo/blake2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.8.1"}]}],"ecosystem_specific":{"affects":{"os":[],"arch":[],"functions":[]},"affected_functions":null},"database_specific":{"categories":["crypto-failure"],"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0019.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}