{"id":"CVE-2023-46129","published":"2023-10-30T23:47:36Z","modified":"2025-02-27T20:38:56Z","title":"xkeys Seal encryption used fixed key for all encryption","vendor":"nats-io","product":"nkeys","tier":"tail","description":{"text":"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.  \nFIXME: 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00446,"percentile":0.3963,"provenance":"source"},"cwes":[{"id":"CWE-321","name":"Use of Hard-coded Cryptographic Key"},{"id":"CWE-325","name":"Missing Cryptographic Step"}],"references":[{"url":"https://github.com/nats-io/nkeys/security/advisories/GHSA-mr45-rx8q-wcm9","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2023/10/31/1","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULQQONMSCQSH5Z5OWFFQHCGEZ3NL4DRJ/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R3UETKPUB3V5JS5TLZOF3SMTGT5K5APS/","tags":[]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.93},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nats-io","affectedVersions":[{"vendor":"nats-io","product":"nkeys","versions":[">= 2.10.0, < 2.10.4",">= 0.4.0, < 0.4.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-26T21:50:00.673870Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/nats-io/nkeys","vulnerableRanges":[">=0.4.0, <0.4.6"],"patched":["0.4.6"],"from":["GHSA-mr45-rx8q-wcm9","GO-2023-2163"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","vulnerableRanges":[">=2.10.0, <2.10.4"],"patched":["2.10.4"],"from":["GHSA-mr45-rx8q-wcm9"],"provenance":"source"}],"summary":{"text":"The nkeys Go library (versions 0.4.0 through 0.4.5, used by NATS server 2.10.0 through 2.10.3 for authentication callouts) has a flaw in its xkeys encryption handling: a buffer is passed by value, so the encryption key is never populated and all encryption is effectively performed with an all-zeros key. An attacker with network access can decrypt data protected by this encryption without authentication or user interaction, and signing is not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:53:22Z"},"euvd":{"id":"EUVD-2023-2780","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-28357","published":"2023-09-19","fixed":"2.7.4","kev":false},{"cve":"CVE-2022-29946","published":"2024-07-11","fixed":"2.8.2","kev":false},{"cve":"CVE-2023-47090","published":"2023-10-30","fixed":"2.10.2","kev":false,"link":{"from":"CVE-2023-47090","to":"CVE-2023-46129","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/nats-io/nats-server/v2","fromFixed":"2.10.2","toFixed":"2.10.4","daysApart":0}]}},{"cve":"CVE-2023-46129","published":"2023-10-30","fixed":"2.10.4","kev":false},{"cve":"CVE-2025-30215","published":"2025-04-15","fixed":"2.11.1","kev":false,"link":{"from":"CVE-2023-46129","to":"CVE-2025-30215","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/nats-io/nats-server/v2","fromFixed":"2.10.4","toFixed":"2.10.27","daysApart":533}]}},{"cve":"CVE-2026-27571","published":"2026-02-24","fixed":"2.12.3","kev":false},{"cve":"CVE-2026-27889","published":"2026-03-25","fixed":"2.12.5","kev":false}],"package":"Go:github.com/nats-io/nats-server/v2"}}