{"id":"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.\n\nThis issue was fixed by checking for this class of keys and rejecting them if they are used.","aliases":["CVE-2017-1000168","RUSTSEC-2017-0001"],"modified":"2023-11-08T03:58:43.680103Z","published":"2021-08-25T21:00:41Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-1240"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2021-08-05T21:10:47Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-1000168"},{"type":"WEB","url":"https://github.com/dnaq/sodiumoxide/issues/154"},{"type":"WEB","url":"https://github.com/sodiumoxide/sodiumoxide/commit/24c7a5550807ac8a09648b5878f19d14c3a69135"},{"type":"PACKAGE","url":"https://github.com/sodiumoxide/sodiumoxide"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2017-0001.html"}],"affected":[{"package":{"name":"sodiumoxide","ecosystem":"crates.io","purl":"pkg:cargo/sodiumoxide"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.14"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-2wc6-2rcj-8v76/GHSA-2wc6-2rcj-8v76.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]}