Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain MQTT credentials
-
DeliveryConnect with persistent session
-
ExploitSend concurrent QoS 2 packets
-
ExecutionTrigger race in ack handler
-
PersistCause message duplication or resource leak
-
ImpactDegrade broker availability
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires authenticated MQTT client credentials (PR:L in CVSS vector) - anonymous unauthenticated access is insufficient. The target EMQX broker must be configured with persistent sessions enabled (Clean Session flag = false / Clean Start = 0 in MQTT 5.0), as the vulnerability resides specifically in emqx_persistent_session_ds.erl persistent session handling. Attack complexity is high (AC:H) requiring precise timing control over concurrent QoS 2 PUBLISH packet delivery and acknowledgment sequences to trigger the race condition window. VulDB assessment marks exploitability as difficult despite POC availability. Limiting factors include: requirement for valid authentication reduces attack surface to insider threats or compromised credentials, high complexity timing requirements make automated mass exploitation unlikely, and impact is restricted to availability degradation (A:L) rather than system compromise. Default EMQX configurations enabling persistent sessions are vulnerable, but deployments using only QoS 0/1 or enforcing Clean Sessions bypass the affected code path. |
| Impact | Real-world exploitation risk is LOW despite network attack vector. Multiple limiting factors reduce practical threat: (1) CVSS AC:H indicates high attack complexity requiring precise timing control, (2) PR:L requires authenticated MQTT client credentials - not anonymous internet access, (3) Impact scope is limited to availability degradation (A:L) with no confidentiality or integrity impact, (4) VulDB marks exploitability as 'difficult' despite public POC, (5) No CISA KEV listing and no EPSS data provided suggest this is not observed in active widespread campaigns. The GitHub POC demonstrates message duplication rather than service crash, further reducing severity. Primary risk is to environments with untrusted authenticated MQTT clients (shared IoT platforms, multi-tenant brokers) where malicious insiders could trigger denial-of-service through repeated race condition exploitation. Single-tenant deployments or those with strong client authentication vetting face minimal risk. Patch availability status not confirmed from vendor - remediation section should verify with EMQ Technologies advisory channels. |
| Exploit ScenarioDerived | An attacker with valid MQTT credentials connects to an EMQX broker configured with persistent sessions enabled. They rapidly send multiple concurrent QoS 2 PUBLISH packets with carefully timed acknowledgment responses, exploiting race conditions in the session state handler to trigger message duplication or consume broker resources tracking inconsistent delivery states. Repeated exploitation across multiple sessions causes gradual availability degradation. Publicly available POC code at github.com/Pathfind-tama/Report_EMQX_MQTT demonstrates the QoS 2 message duplication technique, though successful resource exhaustion requires sustained high-complexity timing manipulation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 17, 2026
Race condition in EMQX MQTT broker versions up to 6.2.0 allows authenticated remote attackers to cause limited availability impact through malformed QoS 2 PUBLISH packet handling in persistent sessions. The vulnerability exploits timing windows in the emqx_persistent_session_ds.erl module, though successful exploitation is marked as difficult with high attack complexity. A proof-of-concept exploit is publicly available on GitHub (Pathfind-tama/Report_EMQX_MQTT), demonstrating QoS 2 message duplication attacks. CVSS 3.1, exploitability requires low-privilege authentication and precise timing, limiting real-world risk despite public POC.
RemediationAI
Primary mitigation is upgrading to EMQX version newer than 6.2.0 if a patched release exists - consult EMQ Technologies security advisories at emqx.io/security or GitHub releases github.com/emqx/emqx/releases for confirmed fix version, as vendor patch status is not independently verified in provided data. If immediate patching is not feasible, implement these compensating controls: (1) Restrict MQTT client authentication to trusted entities only, removing shared credentials or open registration that could allow malicious authenticated access (PR:L requirement means auth is mandatory for exploitation). (2) Disable persistent sessions (clean_session=true / Clean Start=1) for non-critical clients to bypass the vulnerable emqx_persistent_session_ds.erl code path, though this sacrifices message durability guarantees. (3) Rate-limit QoS 2 PUBLISH messages per client using EMQX's built-in quota management to reduce race condition trigger opportunities, accepting potential degradation of legitimate high-throughput QoS 2 flows. (4) Monitor broker resource utilization and session state anomalies to detect exploitation attempts. Reference the detailed POC at github.com/Pathfind-tama/Report_EMQX_MQTT for attack signatures to inform detection rules.
Affected VersionsENISA
Affected Packages
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
EMQX is an open-source MQTT broker written in Erlang/OTP, commonly deployed for IoT message routing and pub-sub architectures. This vulnerability affects the persistent session storage module (emqx_persistent_session_ds.erl) which manages durable MQTT connections and message delivery guarantees. The root cause is CWE-362 (concurrent execution using shared resource with improper synchronization), occurring during QoS 2 (exactly-once delivery) message acknowledgment flows. QoS 2 uses a four-step handshake (PUBLISH → PUBREC → PUBREL → PUBCOMP), and the race condition exploits timing windows in state transitions within persistent session data structures. Erlang's lightweight process model may create scenarios where concurrent message handlers access shared session state without proper locking, leading to inconsistent delivery tracking or resource exhaustion.
Know when Emqx 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
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
1DescriptionCVE.org
A vulnerability has been found in EMQX up to 6.2.0. This affects an unknown function of the file apps/emqx/src/emqx_persistent_session_ds.erl of the component QoS 2 PUBLISH Packet Handler. Such manipulation leads to race condition. The attack may be performed from remote. A high complexity level is associated with this attack. The exploitability is reported as difficult. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure.
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.
Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).
NanoMQ 0.17.5 has a one-byte heap-based buffer over-read in the conn_handler function of mqtt_parser.c when it processes
CVE-2024-42646 is a segmentation fault vulnerability in NanoMQ v0.21.10 that allows unauthenticated remote attackers to
Null Pointer Dereference vulnerability in topic_filtern function in mqtt_parser.c in NanoMQ 0.21.7 allows attackers to c
A use-after-free vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remotely e
A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo
A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo
A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo
In NanoMQ v0.15.0-0, segment fault with Null Pointer Dereference occurs in the process of decoding subinfo_decode and un
In NanoMQ v0.15.0-0, a Heap overflow occurs in copyn_utf8_str function of mqtt_parser.c. Rated high severity (CVSS 7.5),
In NanoMQ v0.15.0-0, Heap overflow occurs in read_byte function of mqtt_code.c. Rated high severity (CVSS 7.5), this vul
A heap-buffer-overflow vulnerability in the read_byte function in NanoMQ v.0.21.7 allows attackers to cause a denial of
NanoMQ v0.22.10 was discovered to contain a memory leak which allows attackers to cause a Denial of Service (DoS) via a
EUVD-2026-30692
GHSA-48p2-hcwr-rx4q
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB