The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2025-68699

CVE-2025-68699: NanoMQ MQTT Broker DOS Vulnerability

CVE-2025-68699 is a denial of service flaw in NanoMQ MQTT Broker caused by protocol parsing inconsistency in shared subscriptions. This post covers technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2025-68699 Overview

CVE-2025-68699 is a Null Pointer Dereference vulnerability affecting NanoMQ MQTT Broker, an all-around Edge Messaging Platform. The vulnerability exists in version 0.24.6 due to improper validation of shared subscription topic filters. When a malformed SUBSCRIBE topic such as $share/ab (missing the second /) is processed, the broker fails to properly validate the Topic Filter during the subscription stage, leading to a remotely triggerable crash.

Critical Impact

This vulnerability allows remote attackers to cause a denial of service condition by sending malformed MQTT SUBSCRIBE messages, causing the broker to crash with a SIGSEGV signal.

Affected Products

  • NanoMQ MQTT Broker version 0.24.6
  • NanoMQ Edge Messaging Platform (versions prior to 0.24.7)

Discovery Timeline

  • 2026-02-04 - CVE-2025-68699 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2025-68699

Vulnerability Analysis

The vulnerability stems from a protocol parsing and forwarding inconsistency when handling shared subscriptions using the $share/ prefix. The NanoMQ broker fails to strictly validate Topic Filters during the subscription stage, allowing malformed topics to be stored in the subscription table.

The core issue occurs in the nmq_pipe_send_start_v4/v5 functions, where the broker's send path performs a secondary $share/ parsing using strchr(). When processing the stored invalid subscription, the code increments the returned pointer without performing NULL checks. If the second strchr() call returns NULL (due to the missing second / delimiter), the sub_topic++ operation transforms the pointer into an invalid address (e.g., 0x1). This invalid pointer is subsequently passed to topic_filtern(), which invokes strlen() on the corrupted address, resulting in a SIGSEGV crash.

Root Cause

The root cause is classified as CWE-476 (NULL Pointer Dereference). The vulnerability originates from missing NULL pointer validation in the shared subscription topic parsing logic within sub_handler.c. The code assumes that strchr() will always find a second / delimiter when parsing $share/ topics, but this assumption fails when processing malformed subscription requests that lack the required topic structure.

Attack Vector

The attack is network-based and can be triggered remotely by any client capable of sending MQTT SUBSCRIBE messages. An attacker does not need authentication in many NanoMQ deployments to exploit this vulnerability. The attack sequence involves:

  1. Connecting to the NanoMQ broker via MQTT
  2. Sending a SUBSCRIBE request with a malformed shared subscription topic (e.g., $share/ab without a trailing /topic)
  3. Triggering a PUBLISH message that matches the subscription pattern
  4. The broker crashes when attempting to forward the message
c
// Security patch from sub_handler.c
// Source: https://github.com/nanomq/nanomq/commit/89d68d678e7f841ae7baa45cba8d9bc7ddc9ef4b

 			log_warn("Invalid share topic in subscription!");
 			return PROTOCOL_ERROR;
 		}
-		char *name_end  = strchr(tn->topic.body+7, '/');
+		char *name_end  = strchr(tn->topic.body + 7, '/');
+		if (name_end == NULL) {
+			log_warn("Invalid share name in subscription!");
+			tn->reason_code = MALFORMED_PACKET;
+			return PROTOCOL_ERROR;
+		}
 		log_info("Sub to share name %.*s", name_end - (tn->topic.body + 7), (tn->topic.body+7));
 		char *mark1 = strchr(tn->topic.body + 7, '#');
 		char *mark2 = strchr(tn->topic.body + 7, '+');

Source: GitHub Commit

Detection Methods for CVE-2025-68699

Indicators of Compromise

  • MQTT SUBSCRIBE requests containing malformed $share/ topics without proper delimiter structure
  • Broker process crashes with SIGSEGV signals
  • Core dumps showing crashes in topic_filtern() or related string processing functions
  • Abnormal subscription patterns in broker logs containing incomplete shared subscription paths

Detection Strategies

  • Monitor MQTT broker logs for "Invalid share topic in subscription!" or similar validation warnings
  • Implement network-level inspection for MQTT SUBSCRIBE packets containing $share/ prefixes without complete topic structures
  • Set up process monitoring to detect unexpected NanoMQ broker restarts or crashes
  • Deploy application-layer firewalls to validate MQTT message structure before reaching the broker

Monitoring Recommendations

  • Enable verbose logging on NanoMQ to capture subscription validation events
  • Configure alerting for broker process terminations and automatic restart events
  • Monitor system logs for SIGSEGV signals associated with the NanoMQ process
  • Track subscription patterns for anomalies in shared subscription topic formats

How to Mitigate CVE-2025-68699

Immediate Actions Required

  • Upgrade NanoMQ MQTT Broker to version 0.24.7 or later immediately
  • Review broker access controls to limit which clients can send SUBSCRIBE requests
  • Implement network segmentation to restrict access to the MQTT broker from untrusted networks
  • Enable enhanced logging to detect exploitation attempts before and after patching

Patch Information

The vulnerability has been patched in NanoMQ version 0.24.7. The fix adds proper NULL pointer validation after the strchr() call in sub_handler.c, returning a PROTOCOL_ERROR with MALFORMED_PACKET reason code when invalid shared subscription topics are detected.

For detailed patch information, refer to:

  • GitHub Security Advisory
  • GitHub Commit

Workarounds

  • Implement MQTT message filtering at the network perimeter to reject malformed $share/ subscriptions
  • Configure authentication requirements to prevent anonymous clients from subscribing
  • Deploy a reverse proxy or MQTT gateway that validates subscription topic formats before forwarding
  • Consider temporarily disabling shared subscription support if not required for operations
bash
# Configuration example - Restricting broker access via firewall
# Limit MQTT access to trusted networks only
iptables -A INPUT -p tcp --dport 1883 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 1883 -j DROP

# Enable authentication in nanomq.conf to prevent anonymous access
# auth.enable = true
# auth.deny_anonymous = true

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechNanomq

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • GitHub Commit Change

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-32696: NanoMQ MQTT Broker DoS Vulnerability

  • CVE-2024-48077: NanoMQ Denial of Service Vulnerability

  • CVE-2026-34608: NanoMQ MQTT Broker Buffer Overflow Flaw

  • CVE-2026-21888: NanoMQ MQTT Broker Buffer Overflow Flaw
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