{"id":"CVE-2026-29785","aliases":["CVE-2026-29785","GHSA-52jh-2xxh-pwh6","BIT-NATS-2026-29785","GO-2026-4829"],"related":["CGA-h2h5-63c6-272r"],"kind":"vulnerability","state":"published","title":"NATS Server panic via malicious compression on leafnode port","summary":"NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Prior to versions 2.11.14 and 2.12.5, if the nats-server has the \"leafnode\" configuration enabled (not default), then anyone who can connect can crash the nats-server by triggering a panic. This happens pre-authentication and requires that compression be enabled (which it is, by default, when leafnodes are used). Versions 2.11.14 and 2.12.5 contain a fix. As a workaround, disable compression on the leafnode port.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Prior to versions 2.11.14 and 2.12.5, if the nats-server has the \"leafnode\" configuration enabled (not default), then anyone who can connect can crash the nats-server by triggering a panic. This happens pre-authentication and requires that compression be enabled (which it is, by default, when leafnodes are used). Versions 2.11.14 and 2.12.5 contain a fix. As a workaround, disable compression on the leafnode port.","source":"cvelist"},{"lang":"en","text":"### Background\n\nNATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.\n\nWhen configured to accept leafnode connections (for a hub/spoke topology of multiple nats-servers), then the default configuration allows for negotiating compression; a malicious remote NATS server can trigger a server panic via that compression.\n\n### Problem Description\n\nIf the nats-server has the \"leafnode\" configuration enabled (not default), then anyone who can connect can crash the nats-server by triggering a panic. This happens pre-authentication and requires that compression be enabled (which it is, by default, when leafnodes are used).\n\nContext: a NATS server can form various clustering topologies, including local clusters, and superclusters of clusters, but leafnodes allow for separate administrative domains to link together with limited data communication; eg, a server in a moving vehicle might use a local leafnode for agents to connect to, and sync up to a central service as and when available. The leafnode configuration here is where the central server allows other NATS servers to connect into it, almost like regular NATS clients. Documentation examples typically use port 7422 for leafnode communications.\n\n### Affected Versions\n\nVersion 2, prior to v2.11.14 or v2.12.5\n\n### Workarounds\n\nDisable compression on the leafnode port:\n\n```\nleafnodes {\n  port: 7422\n  compression: off\n}\n```","format":"markdown","source":"ghsa"},{"lang":"en","text":"NATS Server panic via malicious compression on leafnode port in github.com/nats-io/nats-server","format":"markdown","source":"go"},{"lang":"es","text":"NATS-Server es un servidor de alto rendimiento para NATS.io, un sistema de mensajería nativo de la nube y del borde. Antes de las versiones 2.11.14 y 2.12.5, si el nats-server tiene la configuración 'leafnode' habilitada (no predeterminada), entonces cualquiera que pueda conectarse puede bloquear el nats-server al desencadenar un pánico. Esto ocurre antes de la autenticación y requiere que la compresión esté habilitada (lo cual está habilitado, por defecto, cuando se usan leafnodes). Las versiones 2.11.14 y 2.12.5 contienen una corrección. Como solución alternativa, deshabilite la compresión en el puerto leafnode.","source":"nvd"}],"published":"2026-03-24T21:29:06.000Z","modified":"2026-09-10T03:50:59.782Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-409","CWE-476"],"affected":[{"ranges":[{"version":"< 2.11.14","status":"affected"},{"version":">= 2.12.0-RC.1, < 2.12.5","status":"affected"}],"vendor":"nats-io","product":"nats-server","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1779579439","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Multicluster Global Hub 1.4.5","package":"multicluster-globalhub/multicluster-globalhub-grafana-rhel9","cpe":"cpe:/a:redhat:multicluster_globalhub:1.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1780167118","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Multicluster Global Hub 1.6.5","package":"multicluster-globalhub/multicluster-globalhub-grafana-rhel9","cpe":"cpe:/a:redhat:multicluster_globalhub:1.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1778867753","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat multicluster global hub 1.5.3","package":"multicluster-globalhub/multicluster-globalhub-grafana-rhel9","cpe":"cpe:/a:redhat:multicluster_globalhub:1.5::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift4/oc-mirror-plugin-rhel9","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.14"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.12.0-RC.1","status":"affected","fixed":"2.12.5"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server","purl":"pkg:golang/github.com/nats-io/nats-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server","purl":"pkg:golang/github.com/nats-io/nats-server","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.14"},{"type":"semver","introduced":"2.12.0-RC.1","status":"affected","fixed":"2.12.5"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.11.14"},{"status":"affected","introduced":"2.12.0","fixed":"2.12.5"}],"vendor":"linuxfoundation","product":"nats-server","cpe":"cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.14"},{"type":"semver","introduced":"2.12.0","status":"affected","fixed":"2.12.5"}],"ecosystem":"Bitnami","package":"nats","purl":"pkg:bitnami/nats","source":"bitnami"}],"references":[{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-52jh-2xxh-pwh6","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/nats-io/nats-server/commit/a1488de6f2ba6e666aef0f9cce0016f7f167d6a8","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://advisories.nats.io/CVE/secnote-2026-04.txt","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-29785","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2451444","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-29785.json","tags":["web","x-sadp-csaf-vex"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22347","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2026:23345","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://access.redhat.com/errata/RHSA-2026:21769","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29785","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/nats-io/nats-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-03-28T01:33:48.548Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-29785","url":"https://www.cve.org/CVERecord?id=CVE-2026-29785","licence":"CVE Terms of Use","modified":"2026-09-09T12:04:53.932Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-52jh-2xxh-pwh6","url":"https://github.com/advisories/GHSA-52jh-2xxh-pwh6","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:59.782Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4829","url":"https://pkg.go.dev/vuln/GO-2026-4829","licence":"CC-BY-4.0","modified":"2026-03-31T05:29:17.729Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-29785","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29785","licence":"Public domain","modified":"2026-09-09T13:19:11.863Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-NATS-2026-29785","url":"https://osv.dev/vulnerability/BIT-NATS-2026-29785","licence":"Apache-2.0","modified":"2026-09-08T08:47:47.472Z"}],"updatedAt":"2026-11-25T22:59:16.891Z","epss":{"score":0.00741,"percentile":0.55858,"date":"2026-12-01T12:00:22.000Z"}}