CVE-2019-25002 Incorrect Comparison in sodiumoxide
A logic error in the sodiumoxide Rust crate causes hash comparisons to always return true, bypassing integrity checks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-25002?
CVE-2019-25002 is a critical vulnerability in n/a, published on 31 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the sodiumoxide crate before 0.2.5 for Rust. generichash::Digest::eq compares itself to itself and thus has degenerate security properties.
Which versions are affected by CVE-2019-25002?
3 open source packages ship an affected version, including sodiumoxide. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sodiumoxide crates.io | From 0.0.0-0 | 0.2.5 |
sodiumoxide crates.io | From 0.2.0 | 0.2.5 |
sodiumoxide crates.io | From 0.2.0 | 0.2.5 |
Products include Sodiumoxide Project Sodiumoxide.
How do I fix CVE-2019-25002?
Upgrade sodiumoxide to 0.2.5 or later.
Is CVE-2019-25002 being exploited?
There is no known exploitation of CVE-2019-25002 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-wrvc-72w7-xpmj, RUSTSEC-2019-0026.