CVE-2019-16143

An issue was discovered in the blake2 crate before 0.8.1 for Rust

published September 9, 2019

CVSS
—
EPSS
1%
Percentile
60.3
In the wild
Unconfirmed
What it is

⚠️ A quirky flaw in the blake2 crate means HMAC is doing its job... just not very well! Imagine a chef who’s supposed to double the recipe but only measures half the ingredients — the dish might look good, but the taste will be off! Similarly, BLAKE2b and BLAKE2s in this crate are operating with block sizes that are half of what they should be, resulting in incorrect outputs. This could lead to vulnerabilities in cryptographic operations using HMAC, leaving sensitive data potentially exposed or compromised. While it’s not an immediate crisis, any miscalculation in cryptographic algorithms can lead to a slippery slope of trust issues in your application.

Put simply

Imagine a chef who’s supposed to double the recipe but only measures half the ingredients — the dish might look good, but the taste will be off! Similarly, BLAKE2b and BLAKE2s in this crate are operating with block sizes that are half of what they should be, resulting in incorrect outputs. This vulnerability in the blake2 crate (versions before 0.8.1) occurs because the block sizes for BLAKE2b and BLAKE2s algorithms are improperly set to half of the required sizes, which disrupts the integrity of HMAC results.

What to do

This could lead to vulnerabilities in cryptographic operations using HMAC, leaving sensitive data potentially exposed or compromised. While it’s not an immediate crisis, any miscalculation in cryptographic algorithms can lead to a slippery slope of trust issues in your application. Upgrade the blake2 crate to version 0.8.1 or later to ensure proper block sizes are used. It's a simple patch, but will significantly enhance the integrity of your cryptographic operations. Always review your dependencies to catch issues like this early! You’ve got this! By updating, you’ll keep your application secure and trustworthy. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00933 · 60.3th percentile
Published
2019-09-09T11:58Z
EPSS history
Timeline
  • 09 SEP 11:58Z
    An issue was discovered in the blake2 crate before 0.8.1 for Rust
    cvelistv5