Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. sodiumoxide
  4. ›
  5. CVE-2017-1000168

CVE-2017-1000168: scalarmult() vulnerable to degenerate public keys

August 25, 2021 (updated June 13, 2023)

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

  • github.com/advisories/GHSA-2wc6-2rcj-8v76
  • github.com/dnaq/sodiumoxide/issues/154
  • github.com/sodiumoxide/sodiumoxide
  • github.com/sodiumoxide/sodiumoxide/commit/24c7a5550807ac8a09648b5878f19d14c3a69135
  • nvd.nist.gov/vuln/detail/CVE-2017-1000168
  • rustsec.org/advisories/RUSTSEC-2017-0001.html

Code Behaviors & Features

Detect and mitigate CVE-2017-1000168 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.14

Fixed versions

  • 0.0.14

Solution

Upgrade to version 0.0.14 or above.

Impact 6.5 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

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

Source file

cargo/sodiumoxide/CVE-2017-1000168.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.