CVE-2026-29785 in nats-serverinfo

Summary

by MITRE • 03/25/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 04/01/2026

The vulnerability identified as CVE-2026-29785 affects NATS-Server, a high-performance messaging server that forms the backbone of NATS.io cloud and edge native messaging systems. This critical flaw exists in versions prior to 2.11.14 and 2.12.5, specifically impacting configurations where the leafnode feature is enabled. The issue represents a remote code execution vulnerability that allows unauthenticated attackers to crash the nats-server through a carefully crafted panic condition, making it particularly dangerous in production environments where service availability is paramount. The vulnerability demonstrates a classic denial of service weakness that can be exploited without requiring authentication credentials, which significantly increases its attack surface and potential impact.

The technical root cause of this vulnerability lies within the server's handling of compressed data streams when leafnode connections are established. When leafnode functionality is enabled, the server automatically enables compression as part of its default configuration, creating a pathway for malicious actors to trigger a panic condition. This occurs during the pre-authentication phase, meaning that any entity capable of establishing a network connection to the affected server can potentially exploit this vulnerability. The flaw operates through the compression decompression cycle, where malformed or specially crafted compressed data can cause the server process to enter an unrecoverable state, resulting in a complete service crash. This type of vulnerability aligns with CWE-400, which covers unspecified errors in resource management, and specifically manifests as a resource exhaustion or process termination issue.

The operational impact of CVE-2026-29785 extends beyond simple service disruption, as it can compromise the reliability and availability of messaging infrastructure that many applications depend upon. In enterprise environments where NATS-Server serves as a critical communication layer between microservices, the potential for cascading failures becomes significant. Attackers could exploit this vulnerability to repeatedly crash server instances, leading to service degradation or complete outages that can affect business operations. The pre-authentication nature of the exploit means that network-level access is sufficient to cause damage, eliminating the need for additional authentication credentials or privileged access. This characteristic places the vulnerability in the ATT&CK framework under the T1499 category for network denial of service attacks, where adversaries leverage system weaknesses to disrupt service availability. The impact is particularly severe in cloud-native environments where NATS-Server might be running in containerized or orchestrated deployments, as repeated crashes could trigger automated restart mechanisms that may not be properly configured to handle such sustained attacks.

Mitigation strategies for this vulnerability include immediate upgrade to versions 2.11.14 or 2.12.5, which contain the necessary patches to address the compression handling issue. Organizations should prioritize this update across all affected systems and verify that the fix has been properly applied. As a temporary workaround, administrators can disable compression specifically on the leafnode port, which effectively neutralizes the attack vector while maintaining core functionality. This approach requires careful configuration management to ensure that compression remains enabled for other network segments while restricting it on the vulnerable leafnode interface. Network segmentation and access control measures should be enhanced to limit exposure of the affected server ports to only trusted networks and entities. Security monitoring should be implemented to detect unusual connection patterns or repeated crash events that might indicate exploitation attempts. Additionally, organizations should conduct comprehensive vulnerability assessments to identify all instances of the affected NATS-Server versions within their infrastructure and establish monitoring procedures to detect potential exploitation attempts. The fix implemented in the patched versions addresses the underlying compression handling mechanism to prevent malformed data from causing panic conditions, thereby restoring service stability and preventing unauthorized disruption of messaging infrastructure.

Responsible

GitHub M

Reservation

03/04/2026

Disclosure

03/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00140

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!