HistoryEdit

RUSTSEC-2019-0026

generichash::Digest::eq always return true

Issued
Package
sodiumoxide (crates.io)
Type
Vulnerability
Keywords
#cryptography
Aliases
Details
https://github.com/sodiumoxide/sodiumoxide/pull/381
CVSS Score
9.8 CRITICAL
CVSS Details
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Patched
  • >=0.2.5
Affected Functions
Version
sodiumoxide::crypto::generichash::Digest::eq
  • <0.2.5, >=0.2.0
sodiumoxide::crypto::generichash::Digest::ne
  • <0.2.5, >=0.2.0

Description

PartialEq implementation for generichash::Digest has compared itself to itself.

Digest::eq always returns true and Digest::ne always returns false.