CVE-2026-29785
JSON

7.5high

NATS Server panic via malicious compression on leafnode port

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-52jh-2xxh-pwh6BIT-NATS-2026-29785GO-2026-4829

Description

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.

Affected

Product or packageVersionsReported by
nats-io nats-server< 2.11.14, >= 2.12.0-RC.1, < 2.12.5CVE List
multicluster-globalhub/multicluster-globalhub-grafana-rhel9Not specified
Not affected: from 1779579439 before *, from 1780167118 before *, from 1778867753 before *
CVE List
openshift4/oc-mirror-plugin-rhel9Not specifiedCVE List
github.com/nats-io/nats-server/v2 (Go)before 2.11.14, from 2.12.0-RC.1 before 2.12.5GitHub Advisory Database, Go Vulnerability Database
github.com/nats-io/nats-server (Go)all versionsGitHub Advisory Database, Go Vulnerability Database
linuxfoundation nats-serverbefore 2.11.14, from 2.12.0 before 2.12.5NVD
nats (Bitnami)before 2.11.14, from 2.12.0 before 2.12.5Bitnami Vulnerability Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-409CWE-476

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Background

NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.

When 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.

Problem Description

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).

Context: 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.

Affected Versions

Version 2, prior to v2.11.14 or v2.12.5

Workarounds

Disable compression on the leafnode port:

leafnodes {
  port: 7422
  compression: off
}
Go Vulnerability Database

NATS Server panic via malicious compression on leafnode port in github.com/nats-io/nats-server

NVD (es)

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.

References

https://github.com/nats-io/nats-server/security/advisories/GHSA-52jh-2xxh-pwh6advisory, mitigation, vendor-advisory, web
https://github.com/nats-io/nats-server/commit/a1488de6f2ba6e666aef0f9cce0016f7f167d6a8fix, patch, web
https://advisories.nats.io/CVE/secnote-2026-04.txtadvisory, mitigation, vendor-advisory, web
https://access.redhat.com/security/cve/CVE-2026-29785vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2451444issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-29785.jsonweb
https://access.redhat.com/errata/RHSA-2026:22347vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:23345vendor-advisory, web
https://access.redhat.com/errata/RHSA-2026:21769vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-29785advisory, web
https://github.com/nats-io/nats-serverpackage

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-29785 changed 2026-09-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-52jh-2xxh-pwh6 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4829 changed 2026-03-31CC-BY-4.0
NVDCVE-2026-29785 changed 2026-09-09Public domain
Bitnami Vulnerability DatabaseBIT-NATS-2026-29785 changed 2026-09-08Apache-2.0