CVE-2023-46129
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/nats-io/nkeysGo | >= 0.4.0, < 0.4.6 | 0.4.6 |
github.com/nats-io/nats-server/v2Go | >= 2.10.0, < 2.10.4 | 2.10.4 |
Affected products
32- cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*Range: >=2.10.0,<2.10.4
- osv-coords29 versionspkg:apk/chainguard/k3spkg:apk/chainguard/k3s-embeddedpkg:apk/chainguard/k3s-imagespkg:apk/chainguard/k3s-multicallpkg:apk/chainguard/k3s-staticpkg:apk/chainguard/miniopkg:apk/chainguard/minio-bitnami-2024-compatpkg:apk/chainguard/minio-bitnami-2025-compatpkg:apk/chainguard/minio-iamguarded-2025-compatpkg:apk/chainguard/natspkg:apk/chainguard/nats-serverpkg:apk/chainguard/nats-server-compatpkg:apk/chainguard/telegraf-1.26pkg:apk/wolfi/k3spkg:apk/wolfi/k3s-embeddedpkg:apk/wolfi/k3s-imagespkg:apk/wolfi/k3s-multicallpkg:apk/wolfi/k3s-staticpkg:apk/wolfi/miniopkg:apk/wolfi/minio-bitnami-2024-compatpkg:apk/wolfi/minio-bitnami-2025-compatpkg:apk/wolfi/minio-iamguarded-2025-compatpkg:apk/wolfi/natspkg:apk/wolfi/nats-serverpkg:apk/wolfi/nats-server-compatpkg:apk/wolfi/telegraf-1.26pkg:bitnami/natspkg:golang/github.com/nats-io/nats-server/v2pkg:golang/github.com/nats-io/nkeys
< 1.28.3-r1+ 28 more
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 0.20231101.183725-r0
- (no CPE)range: < 0.20231101.183725-r0
- (no CPE)range: < 0.20231101.183725-r0
- (no CPE)range: < 0.20231101.183725-r0
- (no CPE)range: < 0.1.1-r5
- (no CPE)range: < 2.10.4-r0
- (no CPE)range: < 2.10.4-r0
- (no CPE)range: < 1.26.3-r6
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 1.28.3-r1
- (no CPE)range: < 0.20231101.183725-r0
- (no CPE)range: < 0.20231101.183725-r0
- (no CPE)range: < 0.20231101.183725-r0
- (no CPE)range: < 0.20231101.183725-r0
- (no CPE)range: < 0.1.1-r5
- (no CPE)range: < 2.10.4-r0
- (no CPE)range: < 2.10.4-r0
- (no CPE)range: < 1.26.3-r6
- (no CPE)range: >= 2.10.0, < 2.10.4
- (no CPE)range: >= 2.10.0, < 2.10.4
- (no CPE)range: >= 0.4.0, < 0.4.6
Patches
Vulnerability mechanics
References
9- www.openwall.com/lists/oss-security/2023/10/31/1nvdMailing ListThird Party AdvisoryWEB
- github.com/advisories/GHSA-mr45-rx8q-wcm9ghsaADVISORY
- github.com/nats-io/nkeys/security/advisories/GHSA-mr45-rx8q-wcm9nvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2023-46129ghsaADVISORY
- github.com/nats-io/nkeys/commit/58fb9d69f42ea73fffad1d14e5914dc666f3daa1ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/R3UETKPUB3V5JS5TLZOF3SMTGT5K5APSghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/ULQQONMSCQSH5Z5OWFFQHCGEZ3NL4DRJghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/R3UETKPUB3V5JS5TLZOF3SMTGT5K5APS/nvd
- lists.fedoraproject.org/archives/list/[email protected]/message/ULQQONMSCQSH5Z5OWFFQHCGEZ3NL4DRJ/nvd
News mentions
0No linked articles in our index yet.