# CVE-2019-25002: RUSTSEC-2019-0026 - generichash::Digest::eq always return true

Source: https://junglewise.ai/threats/cve-2019-25002-incorrect-comparison-in-sodiumoxide  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2019-10-11  
License: CC BY 4.0 with a link back

CVE-2019-25002 · Severity: low · CVSS 3.1 · Published 2019-10-11

generichash::Digest::eq always return true

Technologies: [sodiumoxide (crates.io)](https://junglewise.ai/threats/technologies/sodiumoxide). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2019-25002 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2019-25002 being exploited in the wild.

**How severe is CVE-2019-25002?** Low severity, with a CVSS score of 3.1, published 11 October 2019.

**Which products and versions are affected?** sodiumoxide (crates.io) SEMVER:introduced=0.0.0-0,fixed=0.2.5, SEMVER:introduced=0.2.0,fixed=0.2.5.

**Is there a fix for CVE-2019-25002?** Yes. sodiumoxide (crates.io): upgrade to 0.2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2019-25002?** Check whether you run sodiumoxide (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- sodiumoxide (crates.io): upgrade to 0.2.5 or later

  ```sh
  cargo update -p sodiumoxide
  ```


## Affected products

- sodiumoxide (crates.io) SEMVER:introduced=0.0.0-0,fixed=0.2.5, SEMVER:introduced=0.2.0,fixed=0.2.5

## Identifiers

- CVE-2019-25002
- GHSA-wrvc-72w7-xpmj
- RUSTSEC-2019-0026

## Related threats

- [RUSTSEC-2021-0137 - sodiumoxide is deprecated](https://junglewise.ai/threats/rustsec-2021-0137-sodiumoxide-is-deprecated-ade7f8af)
- [RUSTSEC-2017-0001 - scalarmult() vulnerable to degenerate public keys](https://junglewise.ai/threats/cve-2017-1000168-scalarmult-vulnerable-to-degenerate-public-keys)
