CVE-2021-45696 Incorrect hash in sha2
Incorrect hash generation for long messages using AVX2 allows attackers to bypass integrity checks or corrupt data in applications relying on this Rust library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-45696?
CVE-2021-45696 is a critical vulnerability in n/a, published on 26 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the sha2 crate 0.9.7 before 0.9.8 for Rust. Hashes of long messages may be incorrect when the AVX2-accelerated backend is used.
Weakness: CWE-327
Which versions are affected by CVE-2021-45696?
5 open source packages ship an affected version, including sha2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sha2 crates.io | From 0.9.7 | 0.9.8 |
sha2 crates.io | From 0.9.7 | 0.9.8 |
sha2 crates.io | From 0.9.7 | 0.9.8 |
sha2 crates.io | From 0.9.7 | 0.9.8 |
sha2 crates.io | From 0.9.7 | 0.9.8 |
Products include Sha2 Project Sha2.
How do I fix CVE-2021-45696?
Upgrade sha2 to 0.9.8 or later.
Is CVE-2021-45696 being exploited?
There is no known exploitation of CVE-2021-45696 in the wild and no public exploit code.
Sources
Also known as GHSA-fc7x-2cmc-8j2g, GHSA-xpww-g9jx-hp8r, RUSTSEC-2021-0100.