CVE-2023-46129
xkeys Seal encryption used fixed key for all encryption
Also known as BIT-nats-2023-46129, GHSA-mr45-rx8q-wcm9, GO-2023-2163
Mitigation
- Upgrade github.com/nats-io/nkeys to 0.4.6 or later.
- Upgrade github.com/nats-io/nats-server/v2 to 2.10.4 or later.
Who should check
- Projects that depend on Go package github.com/nats-io/nkeys (>= 0.4.0, < 0.4.6)
- Projects that depend on Go package github.com/nats-io/nats-server/v2 (>= 2.10.0, < 2.10.4)
- Anyone running nats-io nkeys >= 2.10.0, < 2.10.4; >= 0.4.0, < 0.4.6
Vulnerability facts
- Affected
- github.com/nats-io/nkeys >= 0.4.0, < 0.4.6; github.com/nats-io/nats-server/v2 >= 2.10.0, < 2.10.4
- Fixed in
- 0.4.6, 2.10.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.47% chance of exploitation in 30 days (percentile 33, 2026-11-26)
- CWE
- CWE-321, CWE-325
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/nats-io/nkeys | >= 0.4.0, < 0.4.6 | 0.4.6 | osv |
| Go github.com/nats-io/nats-server/v2 | >= 2.10.0, < 2.10.4 | 2.10.4 | osv |
| nats-io nkeys | >= 2.10.0, < 2.10.4; >= 0.4.0, < 0.4.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-46129. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-46129.md Affected: github.com/nats-io/nkeys >= 0.4.0, < 0.4.6; github.com/nats-io/nats-server/v2 >= 2.10.0, < 2.10.4 Fixed in: 0.4.6, 2.10.4 Steps: 1. Search this machine and project for github.com/nats-io/nkeys (Go), github.com/nats-io/nats-server/v2 (Go), nats-io nkeys: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- http://www.openwall.com/lists/oss-security/2023/10/31/1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULQQONMSCQSH5Z5OWFFQHCGEZ3NL4DRJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R3UETKPUB3V5JS5TLZOF3SMTGT5K5APS/
- https://github.com/nats-io/nkeys
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R3UETKPUB3V5JS5TLZOF3SMTGT5K5APS
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULQQONMSCQSH5Z5OWFFQHCGEZ3NL4DRJ
FAQ
Is CVE-2023-46129 being exploited?
There is no confirmed exploitation: CVE-2023-46129 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-46129?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2023-46129?
github.com/nats-io/nkeys >= 0.4.0, < 0.4.6; github.com/nats-io/nats-server/v2 >= 2.10.0, < 2.10.4.
Is there a fix for CVE-2023-46129?
Yes. Fixed in 0.4.6, 2.10.4. Upgrade github.com/nats-io/nkeys to 0.4.6 or later. Upgrade github.com/nats-io/nats-server/v2 to 2.10.4 or later.
How do I check if I'm affected by CVE-2023-46129?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.