All reports
Critical

Incorrect hash in sha2

Affected versions

Rust / Cargosha2
Affected versions
= 0.9.7
Fixed version
0.9.8

Exploitation

CVE-2021-45696

Probability of exploitation in the next 30 days: 0.83%

FIRST EPSS · 2026-11-21

Description

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.

Links