CVE-2019-16143 Algorithms compute incorrect results in blake2

Critical 9.8 Published Updated

The Rust blake2 crate produces incorrect HMAC results due to wrong block sizes, compromising cryptographic integrity for users of the library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-16143?

CVE-2019-16143 is a critical vulnerability in n/a, published on 9 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in the blake2 crate before 0.8.1 for Rust. The BLAKE2b and BLAKE2s algorithms, when used with HMAC, produce incorrect results because the block sizes are half of the required sizes.

Weakness: CWE-327

Which versions are affected by CVE-2019-16143?

3 open source packages ship an affected version, including blake2. It affects 1 product.

PackageAffectedFixed in
blake2 crates.ioAll versions0.8.1
blake2 crates.ioAll versions0.8.1
blake2 crates.ioFrom 0.0.0-00.8.1

Products include Blake2 Blake2-Rust.

How do I fix CVE-2019-16143?

Upgrade blake2 to 0.8.1 or later.

Is CVE-2019-16143 being exploited?

There is no known exploitation of CVE-2019-16143 in the wild and no public exploit code.

Sources

Also known as GHSA-4x25-pvhw-5224, RUSTSEC-2019-0019.

Is CVE-2019-16143 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free