CVE-2019-25002

An issue was discovered in the sodiumoxide crate before 0.2.5 for Rust

published December 31, 2020

CVSS
โ€”
EPSS
2%
Percentile
74.1
In the wild
Unconfirmed
What it is

โš ๏ธ A curious flaw in the sodiumoxide crate could mean security isn't as strong as you think! ๐Ÿ’ก Picture a safety deposit box that only checks the key against itself โ€” if it fits, great! But if someone made a duplicate, it's game over. That's how generichash::Digest::eq behaves, leading to weak security properties. This vulnerability could lead to unexpected behavior in hash comparisons, potentially allowing attackers to manipulate data or bypass security checks. While it hasn't been actively exploited, the implications of weak cryptographic operations could open the door for future attacks โ€” a risk no developer should overlook!

Put simply

Picture a safety deposit box that only checks the key against itself โ€” if it fits, great! But if someone made a duplicate, it's game over. That's how generichash::Digest::eq behaves, leading to weak security properties. The issue in sodiumoxide crate versions before 0.2.5 arises from the generichash::Digest::eq method comparing the digest to itself, creating a situation with diminished security properties that could undermine the integrity of cryptographic operations.

What to do

This vulnerability could lead to unexpected behavior in hash comparisons, potentially allowing attackers to manipulate data or bypass security checks. While it hasn't been actively exploited, the implications of weak cryptographic operations could open the door for future attacks โ€” a risk no developer should overlook! Upgrade to sodiumoxide version 0.2.5 or later to address this issue and ensure strong security properties in hash comparisons. Conduct a review of any existing usages of the generichash functionality to confirm they are not relying on flawed behavior. This is an easy fix! Update your dependencies and you'll be back to strong security in no time! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01502 ยท 74.1th percentile
Published
2020-12-31T08:33Z
EPSS history
Timeline
  • 31 DEC 08:33Z
    An issue was discovered in the sodiumoxide crate before 0.2.5 for Rust
    cvelistv5