Lucene search

K
osvGoogleOSV:GHSA-FC7X-2CMC-8J2G
HistoryJan 06, 2022 - 10:10 p.m.

Incorrect hash in sha2

2022-01-0622:10:26
Google
osv.dev
9
sha2
hash
bug
upgrade

EPSS

0.002

Percentile

62.1%

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.

EPSS

0.002

Percentile

62.1%