A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-59946

CVE-2025-59946: Emqx NanoMQ Use-After-Free Vulnerability

CVE-2025-59946 is a use-after-free vulnerability in Emqx NanoMQ MQTT Broker caused by a data racing issue. Attackers can exploit this flaw to trigger heap crashes. This article covers technical details, affected versions, and fixes.

Published: June 2, 2026

CVE-2025-59946 Overview

CVE-2025-59946 is a use-after-free vulnerability in NanoMQ, an open-source edge messaging platform that implements the MQTT protocol. The flaw exists in NanoMQ versions prior to 0.24.2 and stems from a data race condition affecting the subscription information list. An attacker with low privileges and network access can trigger the race condition, causing heap memory to be referenced after it has been freed. Exploitation results in a crash of the broker process, with potential for further memory corruption impact. The issue is tracked under [CWE-416: Use After Free] and was patched in NanoMQ version 0.24.2.

Critical Impact

Successful exploitation can cause heap use-after-free crashes in the NanoMQ broker, disrupting MQTT messaging across connected edge and IoT devices.

Affected Products

  • EMQX NanoMQ versions prior to 0.24.2
  • Deployments using NanoMQ as an MQTT broker for edge and IoT messaging
  • Systems relying on NanoMQ subscription management with concurrent client connections

Discovery Timeline

  • 2025-12-27 - CVE-2025-59946 published to NVD
  • 2026-01-30 - Last updated in NVD database

Technical Details for CVE-2025-59946

Vulnerability Analysis

The vulnerability is a classical data race condition affecting the subscription information list (sub info list) inside NanoMQ. NanoMQ handles MQTT subscriptions across multiple concurrent threads to serve high-throughput edge messaging workloads. When subscription state is modified concurrently without proper synchronization, one thread can free a heap-allocated subscription structure while another thread still holds a reference to it. Subsequent access to the freed memory results in a heap use-after-free condition that crashes the broker.

The attack requires network reachability to the MQTT broker and authenticated low-privilege access. Attack complexity is high because the attacker must reliably interleave subscription operations to win the race window. When successful, the impact extends to confidentiality, integrity, and availability of the broker process.

Root Cause

The root cause is missing or insufficient locking around concurrent reads and writes to the subscription information list. Multiple worker threads access the same subscription metadata without atomic operations or mutex protection. This allows one thread to deallocate a structure that another thread continues to dereference, producing the use-after-free condition described in [CWE-416].

Attack Vector

An attacker connects to the NanoMQ broker over the network as an authenticated MQTT client. The attacker rapidly issues subscribe and unsubscribe operations against overlapping topic filters from concurrent sessions. By repeatedly racing these operations, the attacker triggers the window in which one thread frees a subscription entry while another thread reads it. The dangling pointer dereference corrupts heap state and crashes the broker. See the GitHub Security Advisory GHSA-xg37-23w7-72p5 and the GitHub Issue Discussion for additional technical detail.

Detection Methods for CVE-2025-59946

Indicators of Compromise

  • Unexpected crashes or restarts of the nanomq broker process accompanied by SIGSEGV or SIGABRT signals in system logs
  • Heap corruption messages or backtraces referencing subscription management functions in core dumps
  • Bursts of rapid MQTT SUBSCRIBE and UNSUBSCRIBE packets from a single client or small group of clients targeting overlapping topic filters

Detection Strategies

  • Monitor NanoMQ process logs and systemd journal entries for abnormal termination events and automatic restart cycles
  • Inspect network flows for MQTT clients issuing high-rate subscription churn patterns inconsistent with normal IoT device behavior
  • Run NanoMQ with AddressSanitizer or similar runtime instrumentation in test environments to surface use-after-free conditions during pre-production validation

Monitoring Recommendations

  • Capture broker uptime metrics and alert on repeated process restarts within short time windows
  • Forward MQTT broker telemetry and host event logs into a centralized analytics platform for correlation with client connection metadata
  • Track per-client subscription and unsubscription rates to identify anomalous patterns consistent with race condition exploitation attempts

How to Mitigate CVE-2025-59946

Immediate Actions Required

  • Upgrade all NanoMQ deployments to version 0.24.2 or later, which contains the patch for the subscription list data race
  • Inventory edge and IoT environments to identify any embedded or containerized NanoMQ instances running vulnerable versions
  • Restrict broker access to trusted clients using authentication, ACLs, and network segmentation until patching is complete

Patch Information

The vulnerability is fixed in NanoMQ version 0.24.2. Upgrade instructions and the corresponding patch are referenced in the NanoMQ Security Advisory GHSA-xg37-23w7-72p5. The fix introduces proper synchronization on the subscription information list to eliminate the race window.

Workarounds

  • Limit the number of authenticated clients permitted to issue subscription operations and apply rate limiting on SUBSCRIBE and UNSUBSCRIBE traffic
  • Place the NanoMQ broker behind a network ACL or firewall that restricts MQTT access to known device IP ranges
  • Configure broker supervisors such as systemd or container orchestrators to automatically restart NanoMQ on crash, reducing availability impact while the patch is being deployed
bash
# Configuration example: upgrade NanoMQ to the patched release
git clone https://github.com/nanomq/nanomq.git
cd nanomq
git checkout 0.24.2
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
nanomq start --conf /etc/nanomq.conf

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechEmqx Nanomiq

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • GitHub Issue Discussion
  • Vendor Resources
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-49199: Acer Predator Connect W6x Firmware RCE Flaw

  • CVE-2026-46344: Openquantumsafe Liboqs DOS Vulnerability

  • CVE-2026-44518: Openquantumsafe Liboqs DoS Vulnerability

  • CVE-2026-42951: MacGregor VDR Information Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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