CVE-2026-33215
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-33215 is an MQTT session and message hijacking vulnerability in NATS-Server, a high-performance cloud and edge native messaging system. The flaw exists in the MQTT client interface and allows unauthenticated remote attackers to hijack sessions and messages via MQTT Client ID malfeasance. Affected versions include all nats-server releases before v2.11.15 and v2.12.0-RC.1 through v2.12.5 (i.e., before v2.12.6). It was published on March 24, 2026, with a CVSS v3.1 base score of 6.5 (Medium/Moderate) (Github Advisory, NATS Advisory).

Technical details

The root cause is classified as CWE-287 (Improper Authentication) and CWE-488 (Exposure of Data Element to Wrong Session). The NATS-Server MQTT interface fails to adequately validate or authenticate MQTT Client IDs, allowing an attacker to craft or reuse a Client ID that matches an existing legitimate session. By connecting with a manipulated Client ID, an attacker can take over an active MQTT session and intercept or inject messages intended for the legitimate client. The attack requires no privileges and no user interaction, though it carries high attack complexity, suggesting some knowledge of existing Client IDs or session state is needed (Github Advisory, NATS Advisory).

Impact

Successful exploitation allows an unauthenticated network attacker to hijack MQTT client sessions and intercept messages, resulting in high confidentiality impact — sensitive data transmitted over MQTT can be exposed to unauthorized parties. There is also a low availability impact, as legitimate clients may be disconnected when their session is taken over. Integrity of MQTT communications is also at risk, as an attacker controlling a hijacked session could potentially inject or suppress messages within the affected session scope (Github Advisory, NATS Advisory).

Exploitability

As of the time of disclosure, there is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.017% (4th percentile), indicating a low near-term probability of exploitation. No threat actor attribution has been reported.

Exploitation steps

  1. Reconnaissance: Identify internet-facing or network-accessible NATS-Server instances with the MQTT interface enabled (default MQTT port 1883 or 8883 for TLS). Use tools like Shodan or Censys to locate exposed instances running versions prior to 2.11.15 or 2.12.6.
  2. Identify active Client IDs: Monitor or enumerate active MQTT Client IDs by observing network traffic, leveraging broker-side information leakage, or guessing/predicting Client IDs based on naming conventions used by the target application.
  3. Craft malicious MQTT CONNECT packet: Construct an MQTT CONNECT packet using the identified or guessed Client ID of a legitimate connected client, without providing valid credentials (if authentication is not enforced) or with any accepted credentials.
  4. Send CONNECT to NATS-Server: Establish a TCP connection to the NATS-Server MQTT port and send the crafted CONNECT packet with the target Client ID.
  5. Session hijack: Due to the improper authentication flaw, the server accepts the new connection and associates it with the existing session, disconnecting the legitimate client and transferring session state (including subscriptions and queued messages) to the attacker.
  6. Intercept/inject messages: The attacker now receives all messages destined for the hijacked session and can publish messages as the impersonated client, enabling data exfiltration or manipulation of IoT/cloud messaging workflows (Github Advisory, NATS Advisory).

Indicators of compromise

  • Network: Unexpected MQTT CONNECT packets to the NATS-Server MQTT port (1883/8883) using Client IDs that match existing active sessions; duplicate Client ID connections from different source IP addresses within a short time window.
  • Logs: NATS-Server logs showing a legitimate client being disconnected immediately followed by a new connection with the same Client ID from a different IP address; repeated CONNECT attempts with the same Client ID from multiple sources.
  • Process/Behavior: Legitimate MQTT clients unexpectedly losing their session or subscriptions and reconnecting; anomalous message delivery patterns where expected subscribers stop receiving messages.

Mitigation and workarounds

The NATS project has released patched versions 2.11.15 and 2.12.6 that address this vulnerability; organizations should upgrade immediately. There are no known configuration-based workarounds available. As interim risk reduction measures, administrators should restrict network access to the NATS-Server MQTT interface to trusted clients only, implement network segmentation to isolate MQTT services from untrusted networks, and monitor MQTT connection logs for suspicious Client ID patterns or anomalous session behavior (Github Advisory, NATS Advisory).

Community reactions

The advisory was published by NATS maintainer philpennock on March 24, 2026, and was picked up by multiple vulnerability tracking platforms including ENISA EUVD, VulDB, Tenable (Nessus plugin 303635), and openSUSE security announcements. A technical write-up was published by Infinit Security covering the MQTT hijacking mechanism. The vulnerability received moderate community attention given its relevance to IoT and cloud-native messaging deployments (NATS Advisory).

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