
CVE catalog
CVE-2023-46129
golang-github-nats-io-nkeys: CVE-2023-46129
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.37% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | nats-server | sid | 2.15.1-1 | fixed |
| Debian | nats-server | forky | 2.15.1-1 | fixed |
| Debian | nats-server | trixie | 2.10.27-1 | fixed |
| Debian | nats-server | bookworm | 2.9.10-1 | not affected |
| Debian | golang-github-nats-io-nkeys | sid | 0.4.16-1 | fixed |
| Debian | golang-github-nats-io-nkeys | forky | 0.4.16-1 | fixed |
| Debian | golang-github-nats-io-nkeys | trixie | 0.4.10-1 | fixed |
| Debian | golang-github-nats-io-nkeys | bookworm | 0.3.0-2 | not affected |
| Ubuntu | golang-github-nats-io-nkeys | 20.04 | 0.0~git20181103.f9a6cff-1 | vulnerable |
| Ubuntu | golang-github-nats-io-nkeys | 22.04 | 0.0~git20181103.f9a6cff-1.1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | nats-server | source | sid | 2.10.4-1 | not yet assigned | Not reported | [1055011] |
| Debian | nats-server | source | forky | 2.10.4-1 | not yet assigned | Not reported | [1055011] |
| Debian | nats-server | source | trixie | 2.10.4-1 | not yet assigned | Not reported | [1055011] |
| Debian | nats-server | source | bookworm | Not affected | unimportant | Not reported | [1055011] |
| Debian | golang-github-nats-io-nkeys | source | sid | 0.4.6-1 | not yet assigned | Not reported | [1055010] |
| Debian | golang-github-nats-io-nkeys | source | forky | 0.4.6-1 | not yet assigned | Not reported | [1055010] |
| Debian | golang-github-nats-io-nkeys | source | trixie | 0.4.6-1 | not yet assigned | Not reported | [1055010] |
| Debian | golang-github-nats-io-nkeys | source | bookworm | Not affected | unimportant | Not reported | [1055010] |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-46129]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-46129]
- [https://security-tracker.debian.org/tracker/CVE-2023-46129]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-46129.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-3067.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]