PT-2021-24270 · Sha2 · Sha2
Published
2021-09-08
·
Updated
2023-08-08
·
CVE-2021-45696
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
sha2 crate version 0.9.7
Description:
An issue was discovered in the sha2 crate for Rust, where hashes of long messages may be incorrect when the AVX2-accelerated backend is used. This backend was introduced in version 0.9.7 and was automatically enabled for all x86/x86 64 CPUs where AVX2 support was autodetected at runtime. The backend was buggy and would miscompute results for long messages, i.e., messages spanning multiple SHA blocks.
Recommendations:
For version 0.9.7, immediately upgrade to version 0.9.8 and recompute any hashes which were previously computed by version 0.9.7.
Fix
Use of a Broken Cryptographic Algorithm
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Sha2