CRITICAL9.8
GHSA-wrvc-72w7-xpmj
Incorrect Comparison in sodiumoxide
Details
An issue was discovered in the sodiumoxide crate starting with 0.2.0 and prior to 0.2.5 for Rust. `generichash::Digest::eq` compares itself to itself and thus has degenerate security properties.
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/sodiumoxide
Introduced in:
0.2.0Fixed in: 0.2.5Upgrade sodiumoxide to 0.2.5 or newer (ecosystem crates.io).
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-25002[ADVISORY]
- https://github.com/sodiumoxide/sodiumoxide/pull/381[WEB]
- https://github.com/sodiumoxide/sodiumoxide/pull/381/commits/fae052b834b097ced9a89a8fff8466e18f383070[WEB]
- https://github.com/sodiumoxide/sodiumoxide/commit/38490723927f230498adf795153e6cd3cb08b6a8[WEB]
- https://github.com/sodiumoxide/sodiumoxide[PACKAGE]
- https://rustsec.org/advisories/RUSTSEC-2019-0026.html[WEB]