sha2 known bugs

cargo

3 known bugs in sha2, with affected versions, fixes and workarounds. Sourced from upstream issue trackers.

3
bugs
Known bugs
SeverityAffectedFixed inTitleStatusSource
high0.9.70.9.8
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.
fixedosv:GHSA-xpww-g9jx-hp8r
medium0.9.70.9.8
Miscomputed 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.
fixedosv:RUSTSEC-2021-0100
critical0.9.70.9.8
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.
fixedosv:GHSA-fc7x-2cmc-8j2g
API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/bugs/cargo/sha2
sha2 bugs — known issues per version | DepScope | DepScope