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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.47% (percentile 33, 2026-11-26)
- **CWE:** CWE-321, CWE-325
- **Aliases:** BIT-nats-2023-46129, GHSA-mr45-rx8q-wcm9, GO-2023-2163
- **Published:** 2023-10-30T23:47:36.039Z
- **Modified:** 2026-09-10T03:50:03.954Z

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

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

- Go `github.com/nats-io/nkeys`: affected \>= 0.4.0, \< 0.4.6; fixed 0.4.6 (osv)
- Go `github.com/nats-io/nats-server/v2`: affected \>= 2.10.0, \< 2.10.4; fixed 2.10.4 (osv)
- nats-io nkeys: \>= 2.10.0, \< 2.10.4; \>= 0.4.0, \< 0.4.6 (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-46129>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mr45-rx8q-wcm9> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-2163> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-46129> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-46129>
