Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25627

CVE-2026-25627: Emqx Nanomq MQTT Broker DoS Vulnerability

CVE-2026-25627 is a denial of service vulnerability in Emqx Nanomq MQTT Broker caused by malformed MQTT packets over WebSocket. This article covers the technical details, affected versions, and mitigation steps.

Published: April 2, 2026

CVE-2026-25627 Overview

NanoMQ MQTT Broker is an all-around Edge Messaging Platform that provides lightweight MQTT message broker capabilities for IoT and edge computing environments. A critical out-of-bounds read vulnerability has been discovered in NanoMQ's MQTT-over-WebSocket transport prior to version 0.24.8. The vulnerability can be triggered remotely by sending a maliciously crafted MQTT packet with a deliberately large Remaining Length value in the fixed header while providing a significantly shorter actual payload. This causes the code path to copy more bytes than available in the receive buffer, resulting in an out-of-bounds read that crashes the broker service.

Critical Impact

Remote attackers can crash NanoMQ MQTT broker instances by exploiting the WebSocket listener, causing denial of service for all connected IoT devices and edge applications relying on the messaging platform.

Affected Products

  • emqx nanomq versions prior to 0.24.8
  • NanoMQ MQTT-over-WebSocket transport component
  • Edge deployments using NanoMQ WebSocket listeners

Discovery Timeline

  • 2026-03-30 - CVE CVE-2026-25627 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-25627

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-Bounds Read). The flaw exists in how NanoMQ's MQTT-over-WebSocket transport handles the Remaining Length field in MQTT fixed headers. When processing incoming WebSocket messages, the code trusts the Remaining Length value specified in the MQTT packet header without validating that the actual payload buffer contains sufficient data. This allows an attacker to specify an arbitrarily large Remaining Length while sending a much smaller payload, causing the broker to read beyond the bounds of the allocated receive buffer.

The vulnerability is remotely exploitable over the network without requiring authentication or user interaction. An attacker can target any exposed NanoMQ WebSocket listener to trigger the condition. Address Sanitizer (ASAN) testing confirms the out-of-bounds read condition leads to an immediate crash, making this a reliable denial-of-service vector against affected NanoMQ deployments.

Root Cause

The root cause is insufficient input validation in the MQTT packet parsing logic within the WebSocket transport layer. Specifically, the code copies data based on the Remaining Length field value without first verifying that the current receive buffer actually contains that many bytes. This missing boundary check allows the read operation to exceed buffer limits when processing malformed packets.

Attack Vector

The attack vector is network-based, targeting NanoMQ's WebSocket listener (typically running on the default MQTT-over-WebSocket port). An attacker establishes a WebSocket connection to the broker and sends a specially crafted MQTT packet. The malicious packet contains a fixed header with an inflated Remaining Length value that exceeds the actual payload size. When the broker attempts to process this packet, the buffer read operation exceeds boundaries, causing an immediate crash. No authentication is required, and the attack can be executed with a single malicious packet.

c
// Security patch from NanoNNG - reordering operations to prevent UAF/OOB issues
// Source: https://github.com/nanomq/NanoNNG/commit/e80b30bad6d855593a68d18f2785bfaca6faf09e

 
 	nni_lmq_fini(&p->rslmq);
 	nni_mtx_fini(&p->mtx);
-	NNI_FREE_STRUCT(p);
 	log_trace(" ************ tlstran_pipe_finit [%p] ************ ", p);
+	NNI_FREE_STRUCT(p);
 }
 
 static void

Source: GitHub Commit e80b30b

Detection Methods for CVE-2026-25627

Indicators of Compromise

  • Unexpected NanoMQ broker crashes or service restarts correlating with WebSocket connection attempts
  • Core dumps or crash logs showing out-of-bounds read errors in MQTT packet processing functions
  • Network traffic containing MQTT packets with abnormally large Remaining Length values relative to payload size
  • WebSocket connections from external sources that terminate immediately after sending minimal data

Detection Strategies

  • Deploy network intrusion detection rules to identify MQTT packets where the declared Remaining Length exceeds the actual packet size
  • Monitor NanoMQ process stability and configure alerts for unexpected terminations or restart patterns
  • Implement WebSocket traffic analysis to detect malformed MQTT handshake attempts
  • Enable ASAN or similar memory debugging in development/staging environments to catch boundary violations

Monitoring Recommendations

  • Configure centralized logging for NanoMQ broker instances to capture crash events and stack traces
  • Set up availability monitoring with automatic alerting when WebSocket listeners become unresponsive
  • Track connection patterns to identify potential DoS attack sources targeting WebSocket endpoints
  • Review NanoMQ access logs for repeated connection attempts from suspicious IP addresses

How to Mitigate CVE-2026-25627

Immediate Actions Required

  • Upgrade NanoMQ to version 0.24.8 or later immediately on all affected deployments
  • If immediate patching is not possible, disable or restrict access to WebSocket listeners pending upgrade
  • Implement network-level access controls to limit WebSocket listener exposure to trusted sources only
  • Monitor affected systems for signs of exploitation attempts until patching is complete

Patch Information

EMQ has released version 0.24.8 which addresses this vulnerability. The fix is available through the official NanoMQ releases. The patch adds proper validation of the Remaining Length field against the actual received buffer size before performing copy operations. For detailed technical information about the fix, refer to the GitHub Pull Request #1405 and the GitHub Security Advisory GHSA-w4rh-v3h2-j29x.

Workarounds

  • Disable MQTT-over-WebSocket transport if not required and use standard MQTT TCP transport instead
  • Place NanoMQ WebSocket listeners behind a reverse proxy or load balancer with request validation capabilities
  • Implement firewall rules to restrict WebSocket listener access to known trusted IP ranges
  • Deploy rate limiting on WebSocket connections to slow potential DoS exploitation attempts
bash
# Configuration example - Restrict WebSocket listener access via firewall
# Block external access to NanoMQ WebSocket port (example: 8083)
iptables -A INPUT -p tcp --dport 8083 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8083 -s 192.168.0.0/16 -j ACCEPT
iptables -A INPUT -p tcp --dport 8083 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechEmqx Nanmq

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Release v0.24.8
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Pull Request #1405

  • GitHub Security Advisory GHSA-w4rh-v3h2-j29x
  • Latest CVEs
  • CVE-2025-11419: Keycloak TLS DoS Vulnerability

  • CVE-2025-13947: WebKitGTK Information Disclosure Flaw

  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English