Advisory

GHSA-2wc6-2rcj-8v76

Also known as: CVE-2017-1000168, RUSTSEC-2017-0001

Summary

scalarmult() vulnerable to degenerate public keys

Details

The scalarmult() function included in previous versions of this crate accepted all-zero public keys, for which the resulting Diffie-Hellman shared secret will always be zero regardless of the private key used.

This issue was fixed by checking for this class of keys and rejecting them if they are used.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-08-25 21:00 UTC
Modified
2023-11-08 03:58 UTC

Affected packages and fixes

sodiumoxide

crates.io · All systems

Affected

  • introduced 0, fixed 0.0.14 (semver)

Fixed versions

0.0.14

Fix

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

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