CVE-2026-33218
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-33218 is a pre-authentication Denial of Service vulnerability in NATS-Server, the high-performance messaging server for NATS.io. A remote, unauthenticated client that can connect to the leafnode port can crash the server by sending a specific malformed message before completing authentication. All versions prior to 2.11.15 and 2.12.6 (including the 2.12.x release candidates) are affected. The vulnerability was published on March 24, 2026, with a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is improper input validation (CWE-20, CWE-1286) in the leafnode connection handling code of nats-server. The leafnode feature enables hub/spoke topologies by allowing other NATS servers to connect as leaf nodes; the server fails to properly validate syntactically malformed messages received before the authentication handshake completes, leading to a server panic (crash). No authentication or special privileges are required — any network client able to reach the leafnode port can trigger the crash with a crafted message (GitHub Advisory, NATS Advisory).

Impact

Successful exploitation results in a complete crash (panic) of the nats-server process, causing a full loss of availability for all messaging services dependent on that server instance. There is no impact on confidentiality or data integrity, as the attack occurs pre-authentication and does not grant the attacker access to messages or data. In environments where NATS serves as critical messaging infrastructure (cloud, IoT, edge computing), repeated exploitation could cause sustained service outages and disrupt dependent applications (GitHub Advisory, Red Hat Bugzilla).

Exploitability

No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.066% (21st percentile), indicating a currently low probability of exploitation within the next 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the low attack complexity and lack of authentication requirements make it straightforward to exploit for any attacker with network access to the leafnode port (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing or network-accessible NATS server instances running versions prior to 2.11.15 or 2.12.6 using network scanning tools (e.g., Shodan, Censys, or nmap targeting the default leafnode port, typically TCP 7422).
  2. Confirm leafnode port accessibility: Attempt a TCP connection to the leafnode port to verify it is open and accepting connections without prior authentication.
  3. Craft malformed pre-auth message: Construct a syntactically malformed NATS leafnode protocol message that violates the expected message format before the authentication phase completes.
  4. Send malformed message: Transmit the crafted message to the leafnode port. The server's input validation failure causes a Go runtime panic, crashing the nats-server process.
  5. Achieve DoS: The server becomes unavailable to all legitimate clients and leaf nodes until it is manually restarted or an automated recovery mechanism restarts it (GitHub Advisory, NATS Advisory).

Indicators of compromise

  • Network: Unexpected or repeated TCP connection attempts to the NATS leafnode port (default TCP 7422) from unknown or unauthorized source IPs; connections that terminate abruptly without completing the authentication handshake.
  • Logs: NATS server logs showing a Go runtime panic stack trace immediately followed by process termination; log entries indicating a connection from an unexpected source on the leafnode listener prior to a crash event.
  • Process: Sudden, unexpected termination of the nats-server process; automated restart events (e.g., systemd service restarts) correlated with inbound connections to the leafnode port.
  • System: Repeated service restart events in system logs (e.g., /var/log/syslog or journalctl) for the nats-server service, particularly if correlated with external connection attempts (GitHub Advisory).

Mitigation and workarounds

Upgrade nats-server to version 2.11.15 or 2.12.6, which contain the fix for this vulnerability (GitHub Advisory, NATS Advisory). If upgrading immediately is not possible, apply one of the following workarounds:

  • Disable leafnode support entirely in the server configuration if it is not required for your deployment.
  • Restrict network access to the leafnode port using firewall rules or network ACLs, allowing only trusted NATS server IPs to connect to that port.

Community reactions

The vulnerability was published by NATS maintainer philpennock via the official GitHub Security Advisory on March 24, 2026, and was subsequently tracked by Red Hat's Product Security team in Bugzilla. OpenSUSE issued a security announcement for the affected package, and the vulnerability was picked up by security aggregators including VulnDB, CVEFeed, and LinuxSecurity. Social media coverage was limited but present on Mastodon and Bluesky, with security community accounts sharing the advisory shortly after publication (GitHub Advisory, Red Hat Bugzilla).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

nats-server

Affected

sid

nats-server: 2.12.6-1

Fixed

trixie

nats-server

Affected

Ubuntu

Unknown

devel

nats-server

Unknown

noble

nats-server

Unknown

noble (esm-apps)

nats-server

Unknown

resolute

nats-server

Unknown

resolute (esm-apps)

nats-server

Unknown

RHEL / CentOS

Affected

OpenShift

Not Affected

Alpine

Fixed

edge

nats-server: 2.12.6-r0

Fixed

v3.23

nats-server: 2.12.6-r0

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86738CRITICAL9.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86734HIGH7.1
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86735MEDIUM5.9
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86737MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86736MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management