Skip to main content

EMQX CVE-2026-8741

| EUVDEUVD-2026-30692 LOW
Race Condition (CWE-362)
2026-05-17 VulDB GHSA-48p2-hcwr-rx4q
1.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain MQTT credentials
  2. Delivery
    Connect with persistent session
  3. Exploit
    Send concurrent QoS 2 packets
  4. Execution
    Trigger race in ack handler
  5. Persist
    Cause message duplication or resource leak
  6. Impact
    Degrade 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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 – 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

EMQX 6.2.0
EMQX 6.1
EMQX 6.0

Affected Packages

euvd emqx no fix

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

Vendor (VulDB) PRIMARY 1.3 LOW
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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 17, 2026 - 09:22 NVD
3.1 (LOW) 1.3 (LOW)

DescriptionCVE.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

EPSS Score
0.0%
Top 89% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Low
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: +20
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.

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).

More in Emqx

View all
CVE-2023-34488 HIGH POC
7.8 Jun 12

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 HIGH POC
7.5 Jul 14

CVE-2024-42646 is a segmentation fault vulnerability in NanoMQ v0.21.10 that allows unauthenticated remote attackers to

CVE-2024-31041 HIGH POC
7.5 Apr 17

Null Pointer Dereference vulnerability in topic_filtern function in mqtt_parser.c in NanoMQ 0.21.7 allows attackers to c

CVE-2023-33657 HIGH POC
7.5 Jun 08

A use-after-free vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remotely e

CVE-2023-33660 HIGH POC
7.5 Jun 08

A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo

CVE-2023-33658 HIGH POC
7.5 Jun 08

A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo

CVE-2023-33659 HIGH POC
7.5 Jun 06

A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo

CVE-2023-29996 HIGH POC
7.5 May 04

In NanoMQ v0.15.0-0, segment fault with Null Pointer Dereference occurs in the process of decoding subinfo_decode and un

CVE-2023-29995 HIGH POC
7.5 May 04

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),

CVE-2023-29994 HIGH POC
7.5 May 04

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

CVE-2024-31036 MEDIUM POC
6.8 Apr 22

A heap-buffer-overflow vulnerability in the read_byte function in NanoMQ v.0.21.7 allows attackers to cause a denial of

CVE-2024-42649 MEDIUM POC
6.5 Jul 14

NanoMQ v0.22.10 was discovered to contain a memory leak which allows attackers to cause a Denial of Service (DoS) via a

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