Skip to main content

CVE-2026-29785

HIGH
NULL Pointer Dereference (CWE-476)
2026-03-24 https://github.com/nats-io/nats-server
7.5
CVSS 3.1 · Vendor: https://github.com/nats-io/nats-server
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to NATS server with leafnode enabled
  2. Delivery
    Negotiate compression protocol
  3. Exploit
    Send malformed compression data
  4. Execution
    Trigger null pointer dereference
  5. Impact
    Crash server process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

NATS server must have leafnode configuration explicitly enabled (non-default setting). Remote unauthenticated attacker can connect to the leafnode port and trigger server panic via compression negotiation.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) indicates network-accessible exploitation with low complexity requiring no privileges or user interaction, but impact is limited to availability (denial of service). While the CVSS base score of 7.5 appears high, real-world risk is moderated by several factors: the vulnerability requires leafnode configuration to be explicitly enabled (not default), only affects availability without data breach risk, and has vendor patches available. No EPSS score or KEV listing is provided, suggesting low observed exploitation activity. The attack is automatable and could disrupt critical message infrastructure, but exploitation requires the specific leafnode feature to be enabled and accessible. Organizations not using leafnode topology or those with network segmentation limiting access to port 7422 face reduced risk. This represents a genuine but bounded threat primarily for environments using hub-and-spoke NATS architectures with internet-exposed leafnode ports.

Exploit ScenarioDerived

An attacker identifies a NATS server with leafnode port 7422 exposed to the network through port scanning or service discovery. The attacker connects to the leafnode port and sends specially crafted compression negotiation data designed to trigger a null pointer dereference during the pre-authentication phase. This causes the NATS server to panic and crash, disrupting message delivery for all connected clients and breaking the hub-and-spoke topology until the service is manually restarted. The attack requires no authentication, is trivially automatable, and can be repeated to cause sustained denial of service.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 24, 2026

NATS server with leafnode clustering enabled is vulnerable to a denial-of-service crash triggered by remote attackers who exploit null pointer dereference in the compression negotiation handler prior to authentication. Any attacker capable of connecting to a leafnode-configured NATS server can trigger a server panic, causing service disruption. A patch is available to remediate this high-severity vulnerability.

Earlier versions of this analysis (1)
v1 Mar 24, 2026 - 21:31 CVSS 7.5

A null pointer dereference vulnerability in NATS.io server allows unauthenticated remote attackers to crash the server by exploiting compression negotiation in leafnode connections. NATS server versions 2.x prior to 2.11.14 and 2.12.5 are affected when leafnode configuration is enabled. The vulnerability triggers a server panic pre-authentication, allowing anyone who can connect to cause a denial of service with a CVSS score of 7.5 (High). No KEV listing indicates this is not currently known to be exploited in the wild.

RemediationAI

Upgrade NATS server to version 2.11.14 or later for version 2.11.x deployments, or version 2.12.5 or later for version 2.12.x deployments. The patch commit is available at https://github.com/nats-io/nats-server/commit/a1488de6f2ba6e666aef0f9cce0016f7f167d6a8. As an immediate workaround until patching is possible, disable compression on the leafnode port by adding 'compression: off' within the leafnodes configuration block. Additionally, restrict network access to the leafnode port (typically 7422) to only trusted NATS servers using firewall rules or network segmentation. Refer to the vendor security advisory at https://github.com/nats-io/nats-server/security/advisories/GHSA-52jh-2xxh-pwh6 for complete remediation guidance and https://advisories.nats.io/CVE/secnote-2026-04.txt for additional security notes.

Affected Packages

go github.com/nats-io/nats-server no fix
go github.com/nats-io/nats-server/v2 fix: 2.11.14, 2.12.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NATS.io is a high-performance pub-sub distributed communication technology designed for cloud, on-premise, IoT, and edge computing environments. Leafnodes enable hub-and-spoke topologies where separate administrative domains can link together, typically listening on port 7422, allowing remote NATS servers to connect for limited data communication across trust boundaries. The vulnerability is rooted in CWE-476 (NULL Pointer Dereference) within the compression negotiation mechanism during leafnode connection establishment. The affected products are identified via CPE as pkg:go/github.com_nats-io_nats-server_v2, indicating Go-based implementations of the NATS server version 2 series. The flaw occurs during the compression negotiation phase before authentication completes, meaning the server processes potentially malicious compression data without verifying the connecting entity's identity.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nats-io/nats-server) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/nats-io/nats-server).

CVSS VectorVendor: https://github.com/nats-io/nats-server

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Mar 24, 2026 - 21:31 nvd
Patch available
CVE Published
Mar 24, 2026 - 21:29 nvd
HIGH 7.5

DescriptionCVE.org

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
}

Executive ViewAI

Why It Matters

A high-severity vulnerability in NATS.io server versions 2.x (prior to 2.11.14 and 2.12.5) allows unauthenticated attackers to remotely crash services using leafnode connections, causing denial of service. Organizations running affected NATS deployments with leafnode configuration enabled face immediate service disruption risks, though no active exploitation has been reported.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: disable leafnode functionality if not operationally required; implement network segmentation to restrict unauthenticated access to NATS server ports; deploy ingress filtering to limit connection sources to trusted peers only.

Threat Intelligence Overview

EPSS Score
0.1%
Top 78% exploitable
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:go/github.com_nats-io_nats-server_v2
pkg:go/github.com_nats-io_nats-server_v2

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Leap 15.6 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP5 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP6 Fixed
openSUSE Leap 15.5 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy