Expression Issues Affecting sodiumoxide package, versions <0.2.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SODIUMOXIDE-472983
  • published13 Oct 2019
  • disclosed11 Oct 2019
  • creditUnknown

Introduced: 11 Oct 2019

CVE-2019-25002  (opens in a new tab)
CWE-569  (opens in a new tab)

How to fix?

Upgrade sodiumoxide to version 0.2.5 or higher.

Overview

sodiumoxide is a cryptographic library for Rust (bindings to libsodium).

Affected versions of this package are vulnerable to Expression Issues. PartialEq implementation for generichash::Digest compares itself to itself, thus resulting in Digest::eq always returning trueandDigest::nealways returningfalse`.

CVSS Scores

version 3.1