VDB
Sign up
MEDIUM6.5

GHSA-2wc6-2rcj-8v76

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/sodiumoxide
Introduced in: 0Fixed in: 0.0.14

Upgrade sodiumoxide to 0.0.14 or newer (ecosystem crates.io).

References