In short
What to know.
- Package
- sha2 crates.iofrom 0.9.7 before 0.9.8; listed versions 0.9.7
- What to do
- Upgrade sha2 to 0.9.8 or later.
- Source's rating
- CriticalNoumen has not assessed it.
- Noumen finding
- NMN-2026-0133Candidate. Severity unknown, confidence high.
3 December 2026
Source
- OSV record GHSA-fc7x-2cmc-8j2gosv.devRetrieved 3 December 2026
Full record
- Identifier
- GHSA-fc7x-2cmc-8j2g
- Aliases
- CVE-2021-45696, GHSA-xpww-g9jx-hp8r, RUSTSEC-2021-0100
- Severity
- Critical, as rated by the source. Noumen has not assessed it.
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Fixed versions
- 0.9.8
- Published
- 6 January 2022
- Modified
- 8 November 2023
- Source
- OSV record GHSA-fc7x-2cmc-8j2g, retrieved 3 December 2026, 00:00 UTC
Affected packages and ranges
| Package | Affected versions | Fixed in |
|---|---|---|
| sha2 crates.io | from 0.9.7 before 0.9.8; listed versions 0.9.7 | 0.9.8 |
Affected means inside a published range, not that the code path is reachable in your project.
Details, as published by the source
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.