cve.bz

CVE-2023-46129 Use of Hard-coded Cryptographic Key

7.5 highEPSS 0.4%Fix available

High (7.5). EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/nats-io/nkeys 0.4.6.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-02-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-321 Use of Hard-coded Cryptographic Key
CWE-325 Missing Cryptographic Step
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-46129 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-46129?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-46129?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-46129 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linuxfoundation:nats-serverfrom 2.10.0 before 2.10.4
nats:nkeysfrom 0.4.0 before 0.4.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mr45-rx8q-wcm9Gogithub.com/nats-io/nkeys>=0.4.0 <0.4.60.4.6
GHSA-mr45-rx8q-wcm9Gogithub.com/nats-io/nats-server/v2>=2.10.0 <2.10.42.10.4
GO-2023-2163Gogithub.com/nats-io/nkeys>=0.4.0 <0.4.60.4.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14golang-github-nats-io-nkeys0.4.6-1DEBIAN-CVE-2023-46129
Debian13, 14nats-server2.10.4-1DEBIAN-CVE-2023-46129
Ubuntu20.04:LTS, 22.04:LTSgolang-github-nats-io-nkeysno fix listedUBUNTU-CVE-2023-46129
Alpinev3.19, v3.20, v3.21 and 3 morenats-server2.10.4-r0ALPINE-CVE-2023-46129
Azure Linux2telegraf1.27.4-1AZL-31792
Azure Linux3telegraf1.29.4-1AZL-35298

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Openshift distributed tracing 3.0rhosdt/tempo-gateway-rhel8:0.1.2-19Fixed 2023-12-06RHSA-2023:7663
OpenShift API for Data Protectionoadp/oadp-velero-plugin-rhel9Not affected
OpenShift Serverlessopenshift-serverless-1/ingress-rhel8-operatorWill not fix
Red Hat Ceph Storage 5rhceph/rhceph-5-dashboard-rhel8Not affected
Red Hat OpenShift Container Platform 4openshift4/dpu-network-rhel8-operatorAffected
Red Hat OpenShift Container Platform 4openshift4/oc-mirror-plugin-rhel8Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-cluster-monitoring-operatorNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-contour-rhel8Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-k8s-prometheus-adapter-rhel9Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-operator-sdk-rhel9Not affected
Red Hat OpenShift Container Platform 4openshift4/ose-prometheusNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-prom-label-proxyNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-thanos-rhel8Not affected
Red Hat OpenShift Container Platform 4openshift4/ztp-site-generate-rhel8Not affected
Red Hat Openshift Container Storage 4ocs4/mcg-rhel8-operatorOut of support scope
Red Hat Openshift Container Storage 4ocs4/ocs-rhel8-operatorOut of support scope
Red Hat Openshift Data Foundation 4odf4/mcg-rhel9-operatorNot affected
Red Hat Openshift Data Foundation 4odf4/ocs-rhel9-operatorNot affected
Red Hat Openshift Data Foundation 4odf4/odf-multicluster-rhel8-operatorWill not fix
Red Hat Openshift Data Foundation 4odf4/odf-rhel9-operatorNot affected
5 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-46129.

Attack patterns (CAPEC)

  • CAPEC-68 Subvert Code-signing Facilities Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON