Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. blake2
  4. ›
  5. CVE-2019-16143

CVE-2019-16143: Algorithms compute incorrect results in blake2

August 25, 2021 (updated June 13, 2023)

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.

References

  • github.com/RustCrypto/MACs/issues/19
  • github.com/RustCrypto/hashes/tree/master/blake2
  • github.com/advisories/GHSA-4x25-pvhw-5224
  • nvd.nist.gov/vuln/detail/CVE-2019-16143
  • rustsec.org/advisories/RUSTSEC-2019-0019.html

Code Behaviors & Features

Detect and mitigate CVE-2019-16143 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.1

Fixed versions

  • 0.8.1

Solution

Upgrade to version 0.8.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-327: Use of a Broken or Risky Cryptographic Algorithm

Source file

cargo/blake2/CVE-2019-16143.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:29 +0000.