Skip to main content

FlashMQ CVE-2026-46411

MEDIUM
Uncaught Exception (CWE-248)
2026-06-09 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Obtain valid MQTT credentials
  2. Delivery
    Connect authorized client session to FlashMQ
  3. Exploit
    Send crafted PUBLISH packets exceeding write buffer over-commit
  4. Execution
    Trigger internal safeguard exception in AckSender destructor
  5. Persist
    Uncaught C++ exception forces std::terminate()
  6. Impact
    Broker process aborts, all clients disconnected

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

The attacker must hold a valid, authorized MQTT client connection to the FlashMQ broker - confirmed by the CVSS PR:L vector. No administrator-level or special elevated permissions are required beyond a standard connected client session. The vulnerability is triggered specifically through the MQTT PUBLISH flow (handlePublish in mqttpacket.cpp), meaning the client must be permitted to publish messages. No non-default configuration is required; the vulnerable AckSender destructor path exists in the default broker operation. Exploitation is limited by the requirement of prior authentication: unauthenticated clients or those blocked at the network perimeter cannot trigger this condition. The crash impacts the entire broker process, meaning all connected clients on the instance are affected, not just the attacker's session.

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 characterizes the risk profile: network-exploitable with low complexity, requiring only low-privilege (authenticated) access, with full availability impact and zero confidentiality or integrity impact. The PR:L vector means any legitimately connected MQTT client can trigger the crash - not just administrators - which meaningfully lowers the bar for exploitation in multi-tenant or IoT deployments where many clients share a single broker. No EPSS data was provided, and the vulnerability is not listed in the CISA KEV catalog, indicating no confirmed active exploitation. There is no publicly available exploit code identified at time of analysis. Real-world priority is moderate-to-high for affected deployments: the attack is trivially repeatable (crash, restart, crash again), creating a persistent availability disruption. The scope is limited to the broker process itself (S:U), meaning it cannot pivot to adjacent systems. The 'Information Disclosure' tag in the source intelligence appears to be a mislabeling - the CVSS impact metrics (C:N/I:N/A:H) and the description confirm this is purely a denial-of-service vulnerability with no data exposure component.

Exploit ScenarioDerived

An attacker with valid MQTT credentials connects to a vulnerable FlashMQ broker and sends a sequence of crafted PUBLISH packets engineered to push their client's write buffer beyond the permitted over-commit threshold; this triggers FlashMQ's internal safeguard, which raises an exception inside the AckSender destructor during stack unwinding - a context where C++ cannot catch it - causing std::terminate() to abort the broker process and drop all connected clients. No public proof-of-concept code has been identified at time of analysis, but the attack primitive (MQTT PUBLISH flooding toward a buffer limit) is straightforward for any client with knowledge of the broker's internal write-buffer behavior.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 09, 2026

Denial-of-service in FlashMQ MQTT broker prior to version 1.26.2 allows any authenticated (low-privilege) connected client to crash the entire broker process by deliberately exceeding the permitted write buffer over-commit threshold. The crash occurs because the resulting internal safeguard exception is raised in a C++ destructor code path during stack unwinding - a context where exceptions cannot be caught - forcing a call to std::terminate() and aborting the server. No public exploit has been identified at time of analysis, but exploitation requires only valid MQTT credentials, making this a realistic risk for any FlashMQ deployment with untrusted or semi-trusted client populations.

RemediationAI

Upgrade FlashMQ to version 1.26.2 or later; this is the vendor-released patch as confirmed by the GitHub release tag at https://github.com/halfgaar/FlashMQ/releases/tag/v1.26.2 and the fix commit at https://github.com/halfgaar/FlashMQ/commit/29e08f7b97b6e3f96db923c2b6a260c47b49c195. If immediate upgrade is not feasible, restrict MQTT client authentication so that only fully trusted, controlled clients can connect - this raises the effective privilege bar and reduces the pool of potential attackers, though it does not eliminate the vulnerability. Additionally, operators may consider placing the broker behind a connection-rate-limiting proxy or MQTT gateway that can terminate misbehaving client sessions before they reach FlashMQ, as a compensating control; note that this adds architectural complexity and a potential single point of failure. Monitoring broker process health and configuring automatic process restart (e.g., via systemd RestartSec) can reduce downtime from repeated crash attempts but does not prevent exploitation.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

FlashMQ is an open-source, high-performance MQTT broker written in C++, developed by halfgaar and designed for multi-CPU environments. The vulnerability is rooted in CWE-248 (Uncaught Exception). Specifically, the AckSender class previously held a shared_ptr to the Client object and its destructor would call sendNow() if the acknowledgment had not yet been sent. In C++, if an exception is thrown inside a destructor while another exception is already propagating (e.g., during stack unwinding from a write buffer over-commit guard), the runtime calls std::terminate(), immediately aborting the process. The fix in commit 29e08f7b97b6e3f96db923c2b6a260c47b49c195 removes the implicit sendNow() call from the destructor, replaces it with an assert(sent), and refactors sendNow() to accept a raw Client pointer explicitly at the call sites within handlePublish(). This eliminates the destructor-triggered exception path entirely. The affected CPE is cpe:2.3:a:halfgaar:flashmq:*:*:*:*:*:*:*:*, covering all versions prior to 1.26.2.

Know when Flashmq gets its next vulnerability

  • 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_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

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

DescriptionCVE.org

FlashMQ is a MQTT broker/server, designed for multi-CPU environments. Prior to version 1.26.2, authorized clients have the ability to exceed the permitted over-commit of their write buffer and triggering an internal safe-guard exception. This exception was in a path that was not catchable, and therefore causes a server abort. This issue has been patched in version 1.26.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

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.0%
Patch available No
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
None
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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:halfgaar:flashmq:*:*:*:*:*:*:*:*

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