sodiumoxide/sodiumoxide · Security

scalarmult() vulnerable to degenerate public keys

GHSA ID
GHSA-2wc6-2rcj-8v76
CVE ID
CVE-2017-1000168
Severity
medium
Published
Updated
CVSS
6.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS v3
6.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Description

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.

CWEs

References