CVEfocus › CVE database › CVE-2023-46129

CVE-2023-46129xkeys Seal encryption used fixed key for all encryption

CVSS 7.5 HighEPSS 0.5% (higher than 33% of CVEs)Published 2023-10-30Updated 2025-02-27Assigner: GitHub_M

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.

CWE-321CWE-325

What to do

Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed
2Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-github-nats-io-nkeysNot affected
vulnerable_code_not_present
Ubuntu 25.10golang-github-nats-io-nkeysNot affected
vulnerable_code_not_present
Ubuntu 25.10nats-serverNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-github-nats-io-nkeysNot affected
vulnerable_code_not_present
Ubuntu 24.04nats-serverNot affected
vulnerable_code_not_present
Ubuntu 22.04golang-github-nats-io-nkeysFix pendingUBUNTU-CVE-2023-46129
Ubuntu 20.04golang-github-nats-io-nkeysFix pendingUBUNTU-CVE-2023-46129
Debian 14golang-github-nats-io-nkeysFixed0.4.6-1DEBIAN-CVE-2023-46129
Debian 14nats-serverFixed2.10.4-1DEBIAN-CVE-2023-46129
Debian 13golang-github-nats-io-nkeysFixed0.4.6-1DEBIAN-CVE-2023-46129
Debian 13nats-serverFixed2.10.4-1DEBIAN-CVE-2023-46129
Alpine Linux 3.24nats-serverFixed2.10.4-r0ALPINE-CVE-2023-46129
Alpine Linux 3.23nats-serverFixed2.10.4-r0ALPINE-CVE-2023-46129
Alpine Linux 3.22nats-serverFixed2.10.4-r0ALPINE-CVE-2023-46129
Alpine Linux 3.21nats-serverFixed2.10.4-r0ALPINE-CVE-2023-46129
Alpine Linux 3.20nats-serverFixed2.10.4-r0ALPINE-CVE-2023-46129
Alpine Linux 3.19nats-serverFixed2.10.4-r0ALPINE-CVE-2023-46129
Go librarygithub.com/nats-io/nats-server/v2Fixed2.10.4GHSA-mr45-rx8q-wcm9
Go librarygithub.com/nats-io/nkeysFixed0.4.6GO-2023-2163

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.