GHSA-2wc6-2rcj-8v76
scalarmult() vulnerable to degenerate public keys
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| crates.io | sodiumoxide | < 0.0.14 | 0.0.14 |
Details
As written in the advisory (Markdown source, shown as plain text).
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.
References
External links from the advisory. They lead to third-party sites.