Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-52jh-2xxh-pwh6

Опубликовано: 24 мар. 2026
Источник: github
Github: Прошло ревью
CVSS3: 7.5

Описание

NATS Server panic via malicious compression on leafnode port

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 }

Пакеты

Наименование

github.com/nats-io/nats-server/v2

go
Затронутые версииВерсия исправления

< 2.11.14

2.11.14

Наименование

github.com/nats-io/nats-server/v2

go
Затронутые версииВерсия исправления

>= 2.12.0-RC.1, < 2.12.5

2.12.5

Наименование

github.com/nats-io/nats-server

go
Затронутые версииВерсия исправления

Отсутствует

EPSS

Процентиль: 23%
0.00077
Низкий

7.5 High

CVSS3

Дефекты

CWE-476

Связанные уязвимости

CVSS3: 7.5
redhat
6 дней назад

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.

CVSS3: 7.5
nvd
6 дней назад

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.

CVSS3: 7.5
debian
6 дней назад

NATS-Server is a High-Performance server for NATS.io, a cloud and edge ...

EPSS

Процентиль: 23%
0.00077
Низкий

7.5 High

CVSS3

Дефекты

CWE-476