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-2026-42209

CVE-2026-42209: FlashMQ MQTT Broker DoS Vulnerability

CVE-2026-42209 is a denial of service vulnerability in FlashMQ MQTT broker that allows remote clients to crash the server through retained messages. This post explains its impact, affected versions, and mitigation steps.

Published: May 18, 2026

CVE-2026-42209 Overview

CVE-2026-42209 is a denial of service vulnerability in FlashMQ, an MQTT broker designed for multi-CPU environments. Versions prior to 1.26.1 contain a division by zero flaw [CWE-369] in the retained message handling logic. A remote client with retained publish permission can crash the broker when both set_retained_message_defer_timeout and set_retained_message_defer_timeout_spread are configured to non-default values. If anonymous retained publishing is allowed, no authentication is required to trigger the crash. The issue has been patched in FlashMQ version 1.26.1.

Critical Impact

A single MQTT PUBLISH message with the retain flag can crash the FlashMQ broker, disrupting all connected clients and MQTT-based messaging across the affected deployment.

Affected Products

  • FlashMQ MQTT broker versions prior to 1.26.1
  • Deployments configured with non-default set_retained_message_defer_timeout values
  • Deployments configured with non-default set_retained_message_defer_timeout_spread values

Discovery Timeline

  • 2026-05-08 - CVE-2026-42209 published to NVD
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-42209

Vulnerability Analysis

The vulnerability resides in the trySetRetainedMessages function within subscriptionstore.cpp. FlashMQ uses a deferred timeout mechanism to spread retained message processing load across worker threads. The implementation calls td->randomish() % settings->setRetainedMessageDeferTimeoutSpread.count() to compute a randomized spread value. When the administrator configures setRetainedMessageDeferTimeoutSpread to zero while setRetainedMessageDeferTimeout remains non-default, the modulo operation divides by zero. The resulting SIGFPE signal terminates the broker process, severing all active MQTT sessions.

Root Cause

The root cause is missing input validation before a modulo operation [CWE-369]. The code assumes the spread configuration value is always greater than zero. No guard clause checks the divisor before the arithmetic operation. Any client authorized to publish retained messages, or any unauthenticated client when anonymous retained publishing is enabled, can trigger the code path and reliably crash the broker.

Attack Vector

The attacker connects to the FlashMQ broker over the network and issues a single MQTT PUBLISH packet with the retain flag set. Processing this message routes execution through trySetRetainedMessages, where the division by zero terminates the process. The attack requires no memory corruption primitives, no race condition, and no special tooling beyond a standard MQTT client.

cpp
     if (td->queuedRetainedMessagesEmpty() && setRetainedMessage(publish, subtopics, try_lock_fail))
         return;
 
-    const std::chrono::milliseconds spread(td->randomish() % settings->setRetainedMessageDeferTimeoutSpread.count());
-    std::chrono::time_point<std::chrono::steady_clock> limit = std::chrono::steady_clock::now() + settings->setRetainedMessageDeferTimeout + spread;
+    auto spread {settings->setRetainedMessageDeferTimeoutSpread};
+
+    if (spread != std::chrono::milliseconds::zero())
+    {
+        const int64_t rnd = static_cast<uint32_t>(td->randomish());
+        spread = std::chrono::milliseconds{rnd % spread.count()};
+    }
+
+    const auto randomized_timeout = settings->setRetainedMessageDeferTimeout + spread;
+    std::chrono::time_point<std::chrono::steady_clock> limit = std::chrono::steady_clock::now() + randomized_timeout;
     td->queueSettingRetainedMessage(publish, subtopics, limit);
 }

The patch adds an explicit zero check before performing the modulo operation. Source: FlashMQ Commit 193b6e7

Detection Methods for CVE-2026-42209

Indicators of Compromise

  • Unexpected FlashMQ broker process termination with SIGFPE (signal 8) in system logs.
  • MQTT clients reporting sudden disconnections without graceful shutdown messages from the broker.
  • Core dump files generated by the FlashMQ process containing a stack trace referencing trySetRetainedMessages.
  • Repeated PUBLISH packets with the retain flag arriving from a single source immediately before broker crashes.

Detection Strategies

  • Monitor process supervision logs (systemd, supervisord) for repeated FlashMQ restart events correlated with inbound MQTT traffic.
  • Review FlashMQ configuration files for the combination of non-default set_retained_message_defer_timeout and zero or unset set_retained_message_defer_timeout_spread.
  • Inspect MQTT broker logs for retained PUBLISH messages preceding crash events to identify attacker source addresses.

Monitoring Recommendations

  • Enable broker availability monitoring with alerts on process exit codes indicating arithmetic exceptions.
  • Track MQTT connection counts and retained message publish rates to baseline normal behavior.
  • Aggregate FlashMQ logs into a centralized logging platform to correlate crashes with client activity.

How to Mitigate CVE-2026-42209

Immediate Actions Required

  • Upgrade FlashMQ to version 1.26.1 or later, which contains the official fix.
  • Audit broker configuration and remove non-default values for set_retained_message_defer_timeout and set_retained_message_defer_timeout_spread until the upgrade is applied.
  • Disable anonymous retained publishing and require authentication for clients with publish permissions.
  • Restrict broker network exposure to trusted clients using firewall rules or VPN segmentation.

Patch Information

The vulnerability is patched in FlashMQ version 1.26.1. Refer to the GitHub Security Advisory GHSA-2789-vfcg-5922 and the v1.26.1 Release Notes for upgrade details. The fix commit is available at commit 193b6e7. Additional discussion is documented in GitHub Issue 167.

Workarounds

  • Revert set_retained_message_defer_timeout_spread to its default value to avoid the vulnerable code path.
  • Revoke retained publish permissions from untrusted MQTT users via Access Control List (ACL) configuration.
  • Deploy a process supervisor configured to restart FlashMQ automatically while remediation is in progress.
bash
# Configuration example - safe FlashMQ settings until patched
# In flashmq.conf, ensure spread is not set or matches default:
# set_retained_message_defer_timeout 0
# set_retained_message_defer_timeout_spread 0

# Disable anonymous publishing
allow_anonymous false

# Restrict retained publishing via ACL
# In flashmq_acls.conf:
# user trusted_publisher
# topic write sensors/#

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechFlashmq

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.12%

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

  • GitHub Issue Discussion

  • GitHub Release Tag v1.26.1

  • GitHub Security Advisory GHSA-2789
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
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