Advisory

RUSTSEC-2017-0001

Also known as: CVE-2017-1000168, GHSA-2wc6-2rcj-8v76

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: CVSS v3 score 6.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Dates

Published
2017-01-26 12:00 UTC
Modified
2023-11-08 03:58 UTC

Affected packages and fixes

sodiumoxide

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences