Skip to main content

Moquette EUVDEUVD-2026-85414

| CVE-2026-95844 HIGH
Uncontrolled Recursion (CWE-674)
2026-09-23 GitHub_M
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Connect anonymously to MQTT broker
  2. Delivery
    Craft deeply nested topic filter/name
  3. Exploit
    Send SUBSCRIBE or PUBLISH
  4. Execution
    Trigger recursive CTrie StackOverflowError
  5. Persist
    Wedge SessionEventLoop
  6. Impact
    Deny 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

moquette < 0.18.1

Affected Packages

maven io.moquette:moquette-broker fix: 0.18.1
euvd moquette fix: 0.18.1

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

Vendor (GitHub_M) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Sep 23, 2026 - 18:17 EUVD
CVE Published
Sep 23, 2026 - 16:29 cve.org
HIGH 8.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche lightweight open-source Java MQTT broker, limited enterprise footprint
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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