logo

GHSA-xpww-g9jx-hp8r sha2

Package

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

Severity

Level: High

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

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

EPSS: N/A pctlN/A

Details

Miscomputed sha2 results when using AVX2 backend 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-06-17T00:19:35Z
Modified: 2022-06-17T00:19:35Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-xpww-g9jx-hp8r/GHSA-xpww-g9jx-hp8r.json
CWE IDs: []
Alternative ID: N/A
Finding: F037
Auto approve: 1