logo

CVE-2021-45696 sha2

Package

Manager: cargo
Name: sha2
Vulnerable Version: =0.9.7 || >=0.9.7 <0.9.8

Severity

Level: Critical

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

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00203 pctl0.42567

Details

Incorrect hash in sha2 The v0.9.7 release of the sha2 crate introduced a new AVX2-accelerated backend which was automatically enabled for all x86/x86_64 CPUs where AVX2 support was autodetected at runtime. This backend was buggy and would miscompute results for long messages (i.e. messages spanning multiple SHA blocks). The crate has since been yanked, but any users who upgraded to v0.9.7 should immediately upgrade to v0.9.8 and recompute any hashes which were previously computed by v0.9.7.

Metadata

Created: 2022-01-06T22:10:26Z
Modified: 2023-06-13T20:41:36Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-fc7x-2cmc-8j2g/GHSA-fc7x-2cmc-8j2g.json
CWE IDs: ["CWE-327"]
Alternative ID: GHSA-fc7x-2cmc-8j2g
Finding: F052
Auto approve: 1