GitHub Advisoryadvisory · crates.io

GHSA-2wc6-2rcj-8v76 scalarmult() vulnerable to degenerate public keys

MEDIUM Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2017-1000168
Ecosystem
crates.io
Packages
sodiumoxide
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Weaknesses
CWE-1240
Reviewed
2021-08-05

Affected packages

• crates.io sodiumoxide: < 0.0.14 → fixed in 0.0.14

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.

Related

Alias · CVE (1)

  • CVE-2017-1000168 sodiumoxide 0.0.13 and older scalarmult() vulnerable to degenerate public keys vulnerability

Weakness · CWE (1)

  • CWE-1240 Use of a Cryptographic Primitive with a Risky Implementation weakness

References