{"id":"CVE-2019-25002","published":"2020-12-31T08:33:09Z","modified":"2024-08-05T03:00:18Z","title":"An issue was discovered in the sodiumoxide crate before 0.2.5 for Rust. generichash::Digest::eq compares itself to…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01502,"percentile":0.74939,"provenance":"source"},"cwes":[],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2019-0026.html","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":14.99}]},"affected":[{"ecosystem":"crates.io","package":"sodiumoxide","vulnerableRanges":[">=0.2.0, <0.2.5",">=0.0.0-0, <0.2.5"],"patched":["0.2.5"],"from":["GHSA-wrvc-72w7-xpmj","RUSTSEC-2019-0026"],"provenance":"source"}],"summary":{"text":"The generichash::Digest::eq method in the sodiumoxide Rust crate, prior to version 0.2.5, compares a digest against itself rather than against the other operand, giving the equality check degenerate security properties. An attacker can exploit this when the crate's digest comparison is relied upon for authentication or integrity checks.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:21Z"},"euvd":{"id":"EUVD-2021-1922","exploited":false,"provenance":"source"}}