GHSA-xpww-g9jx-hp8r

Source
https://github.com/advisories/GHSA-xpww-g9jx-hp8r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-xpww-g9jx-hp8r/GHSA-xpww-g9jx-hp8r.json
Aliases
Published
2022-06-17T00:19:35Z
Modified
2023-11-08T04:07:22.441009Z
Details

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.

References

Affected packages

crates.io / sha2

Package

Name
sha2

Affected ranges

Type
SEMVER
Events
Introduced
0.9.7
Fixed
0.9.8

Affected versions

0.*

0.9.7