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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-02)
- Published: 2023-10-30T23:47:36.039Z
- Modified: 2026-09-10T03:50:03.954Z
- Also known as: GHSA-mr45-rx8q-wcm9, BIT-NATS-2023-46129, GO-2023-2163
- Related: CGA-gwj3-f8j3-cq37
- Weaknesses: CWE-321, CWE-325
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nats-io nkeys: >= 2.10.0, < 2.10.4; >= 0.4.0, < 0.4.6
- github.com/nats-io/nkeys (Go): from 0.4.0 before 0.4.6
- github.com/nats-io/nats-server/v2 (Go): from 2.10.0 before 2.10.4
- linuxfoundation nats-server: from 2.10.0 before 2.10.4
- nats nkeys: from 0.4.0 before 0.4.6
- nats (Bitnami): from 2.10.0 before 2.10.4

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/nats-io/nkeys/security/advisories/GHSA-mr45-rx8q-wcm9> (advisory, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2023/10/31/1> (mailing-list, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULQQONMSCQSH5Z5OWFFQHCGEZ3NL4DRJ/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R3UETKPUB3V5JS5TLZOF3SMTGT5K5APS/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-46129> (advisory, web)
- <https://github.com/nats-io/nkeys/commit/58fb9d69f42ea73fffad1d14e5914dc666f3daa1> (fix, web)
- <https://github.com/nats-io/nkeys> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R3UETKPUB3V5JS5TLZOF3SMTGT5K5APS> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULQQONMSCQSH5Z5OWFFQHCGEZ3NL4DRJ> (web)

## Sources

- CVE List: [CVE-2023-46129](https://www.cve.org/CVERecord?id=CVE-2023-46129), CVE Terms of Use, modified 2025-02-27
- GitHub Advisory Database: [GHSA-mr45-rx8q-wcm9](https://github.com/advisories/GHSA-mr45-rx8q-wcm9), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-2163](https://pkg.go.dev/vuln/GO-2023-2163), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-46129](https://nvd.nist.gov/vuln/detail/CVE-2023-46129), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NATS-2023-46129](https://osv.dev/vulnerability/BIT-NATS-2023-46129), Apache-2.0, modified 2025-05-20

---

Page: https://cve.day/CVE-2023-46129 · Whole record: https://cve.day/CVE-2023-46129.json · Rebuilt by cve.day 2026-11-25T22:58:29.832Z
