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 package | Versions | Reported by |
|---|---|---|
| nats-io nats-server | < 2.11.17, >= 2.12.0-preview.1, < 2.12.8 | CVE List |
| github.com/nats-io/nats-server/v2 (Go) | before 2.11.17, from 2.12.0-RC.1 before 2.12.8 | GitHub Advisory Database |
| linuxfoundation nats-server | before 2.11.17, from 2.12.0 before 2.12.8 | NVD |
| nats (Bitnami) | before 2.11.17, from 2.12.0 before 2.12.8 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 8.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
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
- GHSA advisory: https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67
- Credit: Koda Reef
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
| https://github.com/nats-io/nats-server/security/advisories/GHSA-3g5q-cfh2-cq67 | advisory, vendor-advisory, web | |
| https://github.com/nats-io/nats-server/commit/8dcb26eaea78fdcbe96dbee5986d6019fd5cb94a | fix, patch, web | |
| https://github.com/nats-io/nats-server/commit/fc5fe39177533e9dbdd651d2458285bfae1dde27 | fix, patch, web | |
| https://github.com/nats-io/nats-server/releases/tag/v2.11.17 | article, release-notes, web | |
| https://github.com/nats-io/nats-server/releases/tag/v2.12.8 | article, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-58250 | advisory, web | |
| https://github.com/nats-io/nats-server | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58250 changed 2026-07-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3g5q-cfh2-cq67 changed 2026-12-01 | CC-BY-4.0 |
| NVD | CVE-2026-58250 changed 2026-10-25 | Public domain |
| Bitnami Vulnerability Database | BIT-NATS-2026-58250 changed 2026-09-29 | Apache-2.0 |