CVE-2026-58250
JSON

7.5high

NATS Server: Pre-auth server crash via double INFO in leafnode handshake

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.51% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3g5q-cfh2-cq67BIT-NATS-2026-58250

Description

NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.12.8 and 2.11.17, an unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake by sending repeated leafnode INFO protocol messages before authentication and account setup completed. This issue is fixed in versions 2.12.8 and 2.11.17.

Affected

Product or packageVersionsReported by
nats-io nats-server< 2.11.17, >= 2.12.0-preview.1, < 2.12.8CVE List
github.com/nats-io/nats-server/v2 (Go)before 2.11.17, from 2.12.0-RC.1 before 2.12.8GitHub Advisory Database
linuxfoundation nats-serverbefore 2.11.17, from 2.12.0 before 2.12.8NVD
nats (Bitnami)before 2.11.17, from 2.12.0 before 2.12.8Bitnami 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
GitHub8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-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, the cloud and edge native messaging system. Prior to 2.12.8 and 2.11.17, an unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake by sending repeated leafnode INFO protocol messages before authentication and account setup completed. This issue is fixed in versions 2.12.8 and 2.11.17.

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.

The NATS Server supports leafnode connections between servers.

Problem Description

An unauthenticated peer with network access to a leafnode listener with compression enabled could crash the server during the pre-authentication leafnode handshake.

The issue occurs after repeated leafnode INFO protocol messages before a leafnode connection had completed authentication and account setup. Certain state expected later in the handshake could be nil and then later dereferenced, causing a process panic.

Affected Versions

Versions v2.12.7, v2.11.16 and below are vulnerable. The issue is fixed in v2.12.8 and v2.11.17.

Workarounds

Disabling leafnode compression can mitigate the issue until fixed versions are deployed.

Resources
NVD (es)

NATS Server es un servidor de alto rendimiento para NATS.io, el sistema de mensajería nativo de la nube y del borde. Antes de las versiones 2.12.8 y 2.11.17, un par no autenticado con acceso de red a un oyente de nodo hoja con compresión habilitada podría bloquear el servidor durante el handshake de nodo hoja previo a la autenticación al enviar mensajes de protocolo INFO de nodo hoja repetidos antes de que la autenticación y la configuración de la cuenta se completaran. Este problema está solucionado en las versiones 2.12.8 y 2.11.17.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58250 changed 2026-07-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-3g5q-cfh2-cq67 changed 2026-12-01CC-BY-4.0
NVDCVE-2026-58250 changed 2026-10-25Public domain
Bitnami Vulnerability DatabaseBIT-NATS-2026-58250 changed 2026-09-29Apache-2.0