Advisory

GHSA-wrvc-72w7-xpmj

Also known as: CVE-2019-25002, RUSTSEC-2019-0026

Summary

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:45 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

sodiumoxide

crates.io · All systems

Affected

  • introduced 0.2.0, fixed 0.2.5 (semver)

Fixed versions

0.2.5

Fix

  • Fixed version 0.2.5
    cargo update -p sodiumoxide --precise 0.2.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences