kritisch9.8
CVE-2021-45696
Incorrect hash in sha2
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | sha2 | = 0.9.7 | 0.9.8 |
Betroffene Produkte · Sha2 Project
| Produkt | Betroffene Versionen |
|---|---|
| Sha2 | Version 0.9.7 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/sha2/RUSTSEC-2021-0100.md
- https://rustsec.org/advisories/RUSTSEC-2021-0100.html
- https://github.com/advisories/GHSA-fc7x-2cmc-8j2g
- https://nvd.nist.gov/vuln/detail/CVE-2021-45696
- https://github.com/RustCrypto/hashes/pull/314