FlashMQ
CVE-2026-46411
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid MQTT credentials
-
DeliveryConnect authorized client session to FlashMQ
-
ExploitSend crafted PUBLISH packets exceeding write buffer over-commit
-
ExecutionTrigger internal safeguard exception in AckSender destructor
-
PersistUncaught C++ exception forces std::terminate()
-
ImpactBroker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB