CVE-2019-25002 is a critical-severity (CVSS 9.8) vulnerability in sodiumoxide. A fix is available for sodiumoxide — see the affected versions and patch details below.
Incorrect Comparison in sodiumoxide
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
sodiumoxideReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects crates.io packages — download data is not available via public APIs for these ecosystems.
Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🦀crates.io | sodiumoxide | ≥ 0.2.0&&< 0.2.5 | 0.2.5cargo update -p sodiumoxide --precise 0.2.5 |
Affected Products
sodiumoxidesodiumoxide_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for sodiumoxide, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update sodiumoxide to 0.2.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2019-25002 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2019-25002 in your dependencies?
Find it across crates.io, including transitive dependencies.