CVE-2019-25002 Incorrect Comparison in sodiumoxide

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
sodiumoxide crates.ioFrom 0.0.0-00.2.5
sodiumoxide crates.ioFrom 0.2.00.2.5
sodiumoxide crates.ioFrom 0.2.00.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.

Sources

Also known as GHSA-wrvc-72w7-xpmj, RUSTSEC-2019-0026.

Is CVE-2019-25002 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free