CVE-2021-45696

An issue was discovered in the sha2 crate 0.9.7 before 0.9.8 for Rust

published December 26, 2021

CVSS
—
EPSS
1%
Percentile
57.2
In the wild
Unconfirmed
What it is

⚠️ A long message hash could be way off if you’re using sha2 crate 0.9.7 with AVX2 acceleration! Think of it like relying on a fast-food drive-thru that mixes up your order only when the line is long — you might end up with someone else’s burger instead of your salad. 🍔🥗 If the hashes are incorrect, it could lead to data integrity issues where identifying unique messages is compromised. This can be absolutely devastating if you're relying on those hashes for security-sensitive operations!

Put simply

Think of it like relying on a fast-food drive-thru that mixes up your order only when the line is long — you might end up with someone else’s burger instead of your salad. 🍔🥗 This vulnerability in the sha2 crate allows for incorrect hash calculations when processing long messages, specifically affecting the AVX2-accelerated backend. This can result in a mismatch between the expected and actual hashes.

What to do

If the hashes are incorrect, it could lead to data integrity issues where identifying unique messages is compromised. This can be absolutely devastating if you're relying on those hashes for security-sensitive operations! Upgrade the sha2 crate to version 0.9.8 or later to address this issue. Regularly audit your dependencies for updates and consider checking the integrity of your current hashed messages to ensure accuracy. You've got this! By updating to the latest version, you’ll keep your projects running smoothly and securely. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00831 · 57.2th percentile
Published
2021-12-26T21:50Z
EPSS history
Timeline
  • 26 DEC 21:50Z
    An issue was discovered in the sha2 crate 0.9.7 before 0.9.8 for Rust
    cvelistv5