Use of Hard-coded Cryptographic Key Affecting github.com/nats-io/nkeys package, versions >=0.4.0 <0.4.6


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (28th 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-GOLANG-GITHUBCOMNATSIONKEYS-6039720
  • published31 Oct 2023
  • disclosed31 Oct 2023
  • creditQuentin Matillat

Introduced: 31 Oct 2023

CVE-2023-46129  (opens in a new tab)
CWE-321  (opens in a new tab)

How to fix?

Upgrade github.com/nats-io/nkeys to version 0.4.6 or higher.

Overview

Affected versions of this package are vulnerable to Use of Hard-coded Cryptographic Key in the xkeys encryption handling logic. This is due to the buffer being passed by value into an internal function, which results in all encryption being performed with an all-zeros key.

Note: This vulnerability affects encryption only, not signing.

References

CVSS Base Scores

version 3.1