CVE catalog

CVE-2023-46129

golang-github-nats-io-nkeys: CVE-2023-46129

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.37% · Oct 25, 2026

NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing. The cryptographic key handling library, nkeys, recently gained support for encryption, not just for signing/authentication. This is used in nats-server 2.10 (Sep 2023) and newer for authentication callouts. In nkeys versions 0.4.0 through 0.4.5, corresponding with NATS server versions 2.10.0 through 2.10.3, the nkeys library's `xkeys` encryption handling logic mistakenly passed an array by value into an internal function, where the function mutated that buffer to populate the encryption key to use. As a result, all encryption was actually to an all-zeros key. This affects encryption only, not signing. FIXME: FILL IN IMPACT ON NATS-SERVER AUTH CALLOUT SECURITY. nkeys Go library 0.4.6, corresponding with NATS Server 2.10.4, has a patch for this issue. No known workarounds are available. For any application handling auth callouts in Go, if using the nkeys library, update the dependency, recompile and deploy that in lockstep.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannats-serversid2.15.1-1fixed
Debiannats-serverforky2.15.1-1fixed
Debiannats-servertrixie2.10.27-1fixed
Debiannats-serverbookworm2.9.10-1not affected
Debiangolang-github-nats-io-nkeyssid0.4.16-1fixed
Debiangolang-github-nats-io-nkeysforky0.4.16-1fixed
Debiangolang-github-nats-io-nkeystrixie0.4.10-1fixed
Debiangolang-github-nats-io-nkeysbookworm0.3.0-2not affected
Ubuntugolang-github-nats-io-nkeys20.040.0~git20181103.f9a6cff-1vulnerable
Ubuntugolang-github-nats-io-nkeys22.040.0~git20181103.f9a6cff-1.1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannats-serversourcesid2.10.4-1not yet assignedNot reported[1055011]
Debiannats-serversourceforky2.10.4-1not yet assignedNot reported[1055011]
Debiannats-serversourcetrixie2.10.4-1not yet assignedNot reported[1055011]
Debiannats-serversourcebookwormNot affectedunimportantNot reported[1055011]
Debiangolang-github-nats-io-nkeyssourcesid0.4.6-1not yet assignedNot reported[1055010]
Debiangolang-github-nats-io-nkeyssourceforky0.4.6-1not yet assignedNot reported[1055010]
Debiangolang-github-nats-io-nkeyssourcetrixie0.4.6-1not yet assignedNot reported[1055010]
Debiangolang-github-nats-io-nkeyssourcebookwormNot affectedunimportantNot reported[1055010]

[Debian bug #1055011][Debian bug #1055010]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References