Skip to main content

FlashMQ EUVDEUVD-2026-28838

| CVE-2026-42209 MEDIUM
Divide By Zero (CWE-369)
2026-05-08 security-advisories@github.com
6.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify FlashMQ instance prior to 1.26.1 with non-default deferred timeout config
  2. Delivery
    Connect as client with retained publish permission (or anonymous if allowed)
  3. Exploit
    Publish retained MQTT message to any topic
  4. Execution
    Broker enters spread-timeout calculation with zero divisor
  5. Persist
    Divide-by-zero triggers process crash
  6. Impact
    All active MQTT client sessions severed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Division safety checks
Exploitation Conditions

Two non-default operator-configured conditions must both be present: set_retained_message_defer_timeout must be set to a non-default (non-zero) value enabling the deferred-publish code path, AND set_retained_message_defer_timeout_spread must be configured such that its millisecond count evaluates to zero at the time of the modulo operation. The attacker must also hold retained publish permission - satisfied either by an authenticated MQTT account with that permission explicitly granted, or by the broker having anonymous retained publishing enabled (no credentials needed). Default-configured FlashMQ instances are not vulnerable. Exploitation is further limited to FlashMQ versions strictly earlier than 1.26.1 and to network-reachable MQTT broker endpoints. The non-automatable SSVC rating reflects that discovering the specific non-default configuration across targets is not trivially scalable.

Impact

The CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately represents a network-reachable DoS requiring only low-privilege publish rights. However, the attack surface is narrowed by a mandatory non-default configuration prerequisite: both set_retained_message_defer_timeout and set_retained_message_defer_timeout_spread must be explicitly set to non-default values. Operators who have never touched these settings are not vulnerable regardless of version. EPSS at 0.11% (30th percentile) confirms very low exploitation probability in the wild. SSVC rates exploitation as POC-level, automatable as No, and technical impact as Partial - consistent with a targeted, configuration-dependent DoS rather than mass exploitation. The vulnerability is absent from the CISA KEV catalog. Real-world priority is moderate: organizations using the deferred timeout feature should patch promptly to 1.26.1, but this does not warrant emergency response for the broader FlashMQ user base running default configurations.

Exploit ScenarioDerived

An attacker with an MQTT client account holding retained publish permission connects to a FlashMQ broker running a version prior to 1.26.1 that has both set_retained_message_defer_timeout and set_retained_message_defer_timeout_spread explicitly configured. The attacker publishes a retained MQTT message, causing the broker to enter the deferred-timeout code path where the spread count evaluates to zero, triggering a divide-by-zero crash. If anonymous retained publishing is enabled on the target, no credentials are required to execute this attack.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

FlashMQ MQTT broker versions prior to 1.26.1 crashes with a divide-by-zero fault when a client with retained publish permission sends a retained message while both the set_retained_message_defer_timeout and set_retained_message_defer_timeout_spread settings are configured to non-default values, resulting in full denial of service and disconnection of all active MQTT sessions. Publicly available exploit code exists per SSVC classification, though EPSS sits at 0.11% (30th percentile) and no active exploitation is confirmed via the CISA KEV catalog. The vulnerable configuration requires explicit operator action to trigger, meaningfully narrowing real-world exposure.

RemediationAI

Upgrade FlashMQ to version 1.26.1, which resolves the issue via commit 193b6e7 (https://github.com/halfgaar/FlashMQ/commit/193b6e7767889511cfa8e933908ea5e6a1077a1f). Full vendor advisory details are at https://github.com/halfgaar/FlashMQ/security/advisories/GHSA-2789-vfcg-5922. For deployments that cannot immediately upgrade, a targeted compensating control is to remove or reset the set_retained_message_defer_timeout_spread configuration directive to its default (zero or unset); this prevents the vulnerable modulo code path from being reached entirely. Note that removing this setting changes timing randomization behavior for retained message deferral, which may affect throughput smoothing under high retained-message load. As a secondary hardening measure, disable anonymous retained publishing if it is not operationally required, which eliminates the unauthenticated attack vector even on vulnerable versions.

Affected VersionsENISA

FlashMQ < 1.26.1

Affected Packages

euvd flashmq fix: 1.26.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FlashMQ is a high-performance C++ MQTT broker designed for multi-CPU environments (affected versions: FlashMQ < 1.26.1, per EUVD-2026-28838). The root cause is CWE-369 (Divide By Zero), located in subscriptionstore.cpp within the trySetRetainedMessages function. When retained message deferral is enabled, the original code unconditionally executed td->randomish() % settings->setRetainedMessageDeferTimeoutSpread.count() to compute a randomized timeout spread. If setRetainedMessageDeferTimeoutSpread.count() evaluates to zero under specific non-default configuration combinations, the modulo operation triggers a divide-by-zero, crashing the broker process. The fix in commit 193b6e7 introduces a guard (if (spread != std::chrono::milliseconds::zero())) that skips the modulo calculation entirely when the spread is zero, eliminating the crash path.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Network-reachable crash requiring only low-privilege retained publish rights; no confidentiality or integrity impact, sole consequence is full broker availability loss.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
May 08, 2026 - 23:18 EUVD
CVE Published
May 08, 2026 - 22:16 nvd
MEDIUM 6.5

DescriptionCVE.org

FlashMQ is a MQTT broker/server, designed for multi-CPU environments. Prior to version 1.26.1, a remote client with retained publish permission can crash the FlashMQ broker when both set_retained_message_defer_timeout and set_retained_message_defer_timeout_spread are configured to non-default values, resulting in denial of service. If anonymous retained publishing is allowed, no authentication is required; otherwise, the attacker needs the corresponding publish permission. This issue has been patched in version 1.26.1.

Threat Intelligence Overview

EPSS Score
0.1%
Top 70% exploitable
Prevalence
Low
niche high-performance MQTT broker, limited enterprise production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy