Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect anonymously to MQTT broker
-
DeliveryCraft deeply nested topic filter/name
-
ExploitSend SUBSCRIBE or PUBLISH
-
ExecutionTrigger recursive CTrie StackOverflowError
-
PersistWedge SessionEventLoop
-
ImpactDeny service to all broker clients
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | No special conditions beyond network reachability - Moquette accepts anonymous clients by default, so a remote unauthenticated client can exploit this by sending a PUBLISH or SUBSCRIBE whose topic name/filter exceeds a deeply nested '/'-delimited depth (the fix caps at MAX_TOPIC_DEPTH=1024), triggering recursive CTrie processing. The only real limiting factor is exposure: the broker must be reachable by the attacker, and if authentication/authorization is enforced and anonymous access is disabled, the attacker would need a valid connecting client - but the ACL/auth layer does not itself validate topic depth, so any client that can PUBLISH or SUBSCRIBE can trigger it. Impact is amplified because the SessionEventLoop is never restarted, so the crash affects all co-located clients, not just the attacker's session. |
| Impact | This is a genuine but bounded risk. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H) is internally consistent with the description: Moquette accepts anonymous clients by default, so a remote unauthenticated attacker can trigger the flaw with a single malformed PUBLISH or SUBSCRIBE, and the impact is purely availability (VA:H) with no confidentiality or integrity effect (VC:N/VI:N) - appropriate for a StackOverflowError DoS on a memory-safe JVM. The 8.7 score is driven entirely by trivial network exploitability against availability, not by any code-execution potential; the advisory author explicitly states this is NOT RCE. Aggravating the impact: the GHSA notes the SessionEventLoop catches only InterruptedException and is never restarted, so one uncaught StackOverflowError wedges every co-located client, turning a single crafted packet into a broker-wide outage. No EPSS score, no CISA KEV listing, and no independent exploitation telemetry were provided; the advisory ships source-only proof-of-concept code for the vulnerability cluster, so treat this as publicly available exploit code exists rather than active exploitation. Net: a real patch-worthy DoS for anyone exposing Moquette to untrusted clients, but not a mass-exploitation emergency given the product's limited deployment footprint and availability-only impact. |
| Exploit ScenarioDerived | A remote, unauthenticated attacker connects to an internet- or LAN-reachable Moquette broker (anonymous access is the default) and sends a single SUBSCRIBE or PUBLISH containing a topic string with thousands of '/'-delimited levels. Recursive CTrie insertion/matching overflows the JVM stack, throwing StackOverflowError on the never-restarted SessionEventLoop and denying service to all co-located clients. Source-only proof-of-concept code for this vulnerability cluster is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 23, 2026
Remote unauthenticated clients can crash a Moquette MQTT broker running 0.18.0 or earlier by publishing or subscribing with a topic name or filter that is nested to an extreme depth, triggering uncontrolled recursion in the broker's CTrie subscription structure and an uncaught StackOverflowError. Because Moquette accepts anonymous MQTT clients by default, network reachability is the only precondition, and the resulting crash lands on a SessionEventLoop that catches only InterruptedException and is never restarted, so the failure wedges every session co-located on that loop rather than just the attacker's connection - a broker-wide denial of service with high availability impact (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; vendor-published CVSS 4.0 base 8.7). The issue is not in CISA KEV and no public exploit identified at time of analysis; it is fixed in Moquette 0.18.1, which introduces a MAX_TOPIC_DEPTH of 1024 enforced on both PUBLISH and SUBSCRIBE paths.
RemediationAI
Vendor-released patch: upgrade to Moquette 0.18.1, the version that introduces BrokerConstants.MAX_TOPIC_DEPTH (1024) and rejects over-deep PUBLISH and SUBSCRIBE traffic with a connection drop while trapping oversized trie insertions as caught IllegalStateException. Obtain it from https://github.com/moquette-io/moquette/releases/tag/v0.18.1; the change is delivered by commit ca17e0be19e86d5e291f4532dfdc94616c8e0049 and pull requests https://github.com/moquette-io/moquette/pull/957 and https://github.com/moquette-io/moquette/pull/958, and the full advisory is at https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq. If an immediate upgrade is not possible, the most effective compensating control is to stop exposing the MQTT listener to untrusted clients: bind the broker to a private interface and restrict ports 1883/8883 to known client networks with firewall or security-group rules, accepting that this breaks legitimate remote or roaming clients. Disabling anonymous access (setting allow_anonymous=false with a real authenticator) reduces the attacker pool but does not eliminate the flaw, because raising the recursion depth requires only the ability to send a PUBLISH or SUBSCRIBE and the ACL/auth layer performs no topic-depth validation - so treat authentication as exposure reduction, not remediation. A front-end MQTT-aware proxy or packet filter can reject topics containing an excessive number of '/' separators before they reach Moquette, but this adds latency, complicates TLS termination, and risks dropping legitimate deeply structured topic hierarchies, so it should be considered only as a temporary stopgap alongside planning for 0.18.1. Also review whether the broker's SessionEventLoop-based threading model is wrapped by an external supervisor, since without the code fix no exception handler outside the broker can restart a wedged event loop.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Moquette is a lightweight Java MQTT broker, and this flaw is classified as CWE-674 (Uncontrolled Recursion). MQTT topics and subscription filters are '/'-delimited hierarchical strings, and Moquette stores and matches subscriptions in a concurrent trie (CTrie) whose insertion (CTrie.addToTree) and matching (recursiveMatch) logic recurses once per topic level. Prior to version 0.18.1 there was no upper bound on the number of levels a client could supply, so a single crafted topic made of thousands of slash-separated segments pushed the recursion depth past the JVM stack limit and produced a StackOverflowError. The blast radius is amplified by the threading model: the exception is raised on the SessionEventLoop, whose run loop in SessionEventLoop.java catches only InterruptedException and which SessionEventLoopGroup never restarts, so any uncaught throwable on that loop permanently stalls all client sessions assigned to it. The same untrusted-input surface also lets a malformed $share/grp SUBSCRIBE raise StringIndexOutOfBoundsException and a clientId containing '#' cause a NullPointerException in Topic.match, reinforcing that the root problem is the absence of input validation on topic depth and wildcard characters before they reach recursive matching structures. The official fix adds BrokerConstants.MAX_TOPIC_DEPTH = 1024, drops connections whose PUBLISH or SUBSCRIBE exceeds it, and throws a guarded IllegalStateException inside CTrie that callers in CTrieSubscriptionDirectory catch and log instead of propagating.
Know when Moquette 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:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Remote, low-complexity, unauthenticated (anonymous default) single-packet trigger; availability-only impact from broker-wide DoS, no confidentiality or integrity effect on a memory-safe JVM.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Moquette is a lightweight Java MQTT broker. Prior to 0.18.1, Moquette does not limit the depth of topic names and topic filters before processing them through recursive CTrie insertion and matching operations. A remote client can publish or subscribe with a deeply nested topic, causing a StackOverflowError that disrupts session processing and can deny service to broker clients. This issue is fixed in version 0.18.1.
Technical POC Analysis
Evidence note: the supplied advisory is GHSA-5f42-97gr-vfhq, which covers the Critical cluster CVE-2026-85724.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Moquette MQTT broker versions 0.18.0 and earlier are susceptible to a remote unauthenticated denial-of-service vulnerability that can completely crash the broker, disrupting all connected sessions and dependent applications. Because the broker accepts anonymous connections by default, any network-accessible attacker can trigger the flaw without credentials, and the resulting crash wedges every session on the affected event loop, not just the attacker's. Leadership should prioritize remediation because a successful attack can halt IoT/OT messaging, causing operational downtime and financial impact.
Apply vendor patch.
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
Moquette MQTT brokers running versions prior to 0.18.1 fail to enforce topic write ACLs on Last Will and Testament messa
Moquette MQTT brokers prior to 0.18.1 can start up with authentication and authorization silently disabled whenever a co
Durable MQTT sessions in Moquette 0.18.0 and earlier can corrupt each other's persisted queues when a client connects wi
Remote, pre-authentication denial of service in the Moquette MQTT broker (moquette-io moquette-broker) through 0.18.0 al
Denial of service in the Moquette lightweight Java MQTT broker prior to 0.18.1: a single remote, unauthenticated MQTT cl
Unbounded per-session message queuing in Moquette MQTT Broker before 0.18.1 permits remote unauthenticated clients to ex
Unauthorized message injection in the Moquette lightweight Java MQTT broker affects all releases prior to 0.18.1: PostOf
EUVD-2026-85414
NVD
CVE.org
EPSS
GitHub
Exploit-DB