{"ecosystem":"cargo","package":"sha2","version":null,"bugs":[{"id":878,"ecosystem":"cargo","package_name":"sha2","affected_version":"0.9.7","fixed_version":"0.9.8","bug_id":"osv:GHSA-xpww-g9jx-hp8r","title":"Miscomputed sha2 results when using AVX2 backend","description":"The v0.9.7 release of the `sha2` crate introduced a new AVX2-accelerated\nbackend which was automatically enabled for all x86/x86_64 CPUs where AVX2\nsupport was autodetected at runtime.\n\nThis backend was buggy and would miscompute results for long messages\n(i.e. messages spanning multiple SHA blocks).\n\nThe crate has since been yanked, but any users who upgraded to v0.9.7 should\nimmediately upgrade to v0.9.8 and recompute any hashes which were previously\ncomputed by v0.9.7.\n","severity":"high","status":"fixed","source":"osv","source_url":"https://github.com/RustCrypto/hashes/pull/314","labels":["CVE-2021-45696","GHSA-fc7x-2cmc-8j2g","RUSTSEC-2021-0100"],"created_at":"2026-04-19T04:32:03.088695+00:00","updated_at":"2026-04-19T04:32:03.088695+00:00"},{"id":879,"ecosystem":"cargo","package_name":"sha2","affected_version":"0.9.7","fixed_version":"0.9.8","bug_id":"osv:RUSTSEC-2021-0100","title":"Miscomputed results when using AVX2 backend","description":"The v0.9.7 release of the `sha2` crate introduced a new AVX2-accelerated\nbackend which was automatically enabled for all x86/x86_64 CPUs where AVX2\nsupport was autodetected at runtime.\n\nThis backend was buggy and would miscompute results for long messages\n(i.e. messages spanning multiple SHA blocks).\n\nThe crate has since been yanked, but any users who upgraded to v0.9.7 should\nimmediately upgrade to v0.9.8 and recompute any hashes which were previously\ncomputed by v0.9.7.","severity":"medium","status":"fixed","source":"osv","source_url":"https://crates.io/crates/sha2","labels":["CVE-2021-45696","GHSA-fc7x-2cmc-8j2g","GHSA-xpww-g9jx-hp8r"],"created_at":"2026-04-19T04:32:03.089240+00:00","updated_at":"2026-04-19T04:32:03.089240+00:00"},{"id":877,"ecosystem":"cargo","package_name":"sha2","affected_version":"0.9.7","fixed_version":"0.9.8","bug_id":"osv:GHSA-fc7x-2cmc-8j2g","title":"Incorrect hash in sha2","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.\n\nThis backend was buggy and would miscompute results for long messages (i.e. messages spanning multiple SHA blocks).\n\nThe 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.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45696","labels":["CVE-2021-45696","GHSA-xpww-g9jx-hp8r","RUSTSEC-2021-0100"],"created_at":"2026-04-19T04:32:03.087607+00:00","updated_at":"2026-04-19T04:32:03.087607+00:00"}],"total":3,"_cache":"miss"}