Cryptographic Weakness Affecting sodiumoxide package, versions <0.0.14


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-SODIUMOXIDE-72302
  • published4 Oct 2018
  • disclosed26 Jan 2017
  • creditJP Aumasson

Introduced: 26 Jan 2017

CVE-2017-1000168  (opens in a new tab)
CWE-320  (opens in a new tab)

How to fix?

Upgrade sodiumoxide to version 0.0.14 or higher.

Overview

sodiumoxide is a new easy-to-use high-speed software library for network communication, encryption, decryption, signatures, etc.

Affected versions of this package are vulnerable to Cryptographic Weakness via the scalarmult() function. It 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.

CVSS Scores

version 3.1