xkeys Seal encryption used fixed key for all encryption
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-46129
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 04:03 UTC · Revision 1
Source evidence
xkeys Seal encryption used fixed key for all encryption
core-osv · Original sourcePublished 30 Oct 2023, 23:47 UTC
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.
osv:CVE-2023-46129
Complete source record
{
"id": "6f93a245b3e9cf1406a4daa1143c3afc30c1b8080a339ad8ad28b4b17d2aec3a",
"url": "https://osv.dev/vulnerability/CVE-2023-46129",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "xkeys Seal encryption used fixed key for all encryption",
"summary": "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.",
"evidence": "osv:CVE-2023-46129",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-46129",
"aliases": [
"BIT-nats-2023-46129",
"CVE-2023-46129",
"GHSA-mr45-rx8q-wcm9",
"GO-2023-2163"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nats-io/nats-server",
"type": "GIT",
"events": [
{
"introduced": "77e198333fb2b25029b620fae3574b328de37f89"
},
{
"fixed": "abc47f751933f6523fc7ec956d2a697b6157c3f7"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.10.0"
},
{
"fixed": "2.10.4"
}
],
"source": "CPE_RANGE"
}
]
}
},
{
"repo": "https://github.com/nats-io/nkeys",
"type": "GIT",
"events": [
{
"introduced": "f5bec5b5afc6895c36b13469f0cff5dee4923fb7"
},
{
"fixed": "62e5d8c7c4af84283b6535bcbf1300ab25b45e2d"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.4.0"
},
{
"fixed": "0.4.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:nats:nkeys:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.4.0"
},
{
"fixed": "0.4.6"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.10.3",
"v2.10.2",
"v2.10.1",
"v2.10.0",
"v0.4.5",
"v0.4.4",
"v0.4.3",
"v0.4.2",
"v0.4.1",
"v0.4.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-46129.json"
}
}
],
"modified": "2026-10-28T02:30:33.034234894Z",
"provider": "osv",
"references": [
"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/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46129.json",
"https://github.com/nats-io/nkeys/security/advisories/GHSA-mr45-rx8q-wcm9",
"https://nvd.nist.gov/vuln/detail/CVE-2023-46129"
],
"provider_metadata": {
"cwe_ids": [
"CWE-321",
"CWE-325"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "2.10.0"
},
{
"fixed": "2.10.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46129.json"
}
},
"related_cves": [
{
"value": "CVE-2023-46129",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 500211,
"published_at": "2023-10-30T23:47:36.039+00:00"
}