{"cve":"CVE-2023-46129","nvd":{"published":"2023-10-31T00:15:09.933","modified":"2026-06-17T06:30:12.717","status":"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.  \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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-321","CWE-325"],"references":["http://www.openwall.com/lists/oss-security/2023/10/31/1","https://github.com/nats-io/nkeys/security/advisories/GHSA-mr45-rx8q-wcm9","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/","http://www.openwall.com/lists/oss-security/2023/10/31/1"],"products":["linuxfoundation:nats-server","nats:nkeys"],"source":"nvd","synced_at":"2026-10-19T21:40:11.519948003+00:00"},"epss":{"cve":"CVE-2023-46129","score":0.00446,"percentile":0.38776,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-mr45-rx8q-wcm9","url":"https://osv.dev/vulnerability/GHSA-mr45-rx8q-wcm9","summary":"xkeys seal encryption used fixed key for all encryption","modified":"2026-09-10T03:50:03.954498447Z","packages":[{"ecosystem":"Go","name":"github.com/nats-io/nkeys","purl":"pkg:golang/github.com/nats-io/nkeys","ranges":[">=0.4.0 <0.4.6"],"fixed":["0.4.6"]},{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","ranges":[">=2.10.0 <2.10.4"],"fixed":["2.10.4"]}]},{"id":"GO-2023-2163","url":"https://osv.dev/vulnerability/GO-2023-2163","summary":"Curve KeyPairs fail to encrypt in github.com/nats-io/nkeys","modified":"2026-02-04T02:17:32.973443Z","packages":[{"ecosystem":"Go","name":"github.com/nats-io/nkeys","purl":"pkg:golang/github.com/nats-io/nkeys","ranges":[">=0.4.0 <0.4.6"],"fixed":["0.4.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}