CVE-2026-95844

Moquette deeply nested MQTT topics can cause stack exhaustion

Published Sep 23, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Moquette, a lightweight Java MQTT broker, processes MQTT topic names and topic filters through recursive CTrie operations without limiting their depth. A remote client can publish or subscribe using a deeply nested topic, triggering a StackOverflowError during these recursive operations. The error disrupts session processing and can render the broker unavailable to its clients, creating a denial‑of‑service scenario for all connected users.

Affected Systems

The vulnerability affects the moquette-io:moquette broker, specifically any release prior to version 0.18.1. Users deploying older Moquette versions are at risk. Upgrading to 0.18.1 or newer mitigates the issue.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity, while the EPSS score is not available, giving no precise estimate of current exploitation likelihood. The vulnerability is not listed in the CISA KEV catalog. The attack vector is remote; any client capable of publishing or subscribing to the broker can introduce a deeply nested topic and trigger the stack exhaustion. No special environment or privileged access is required beyond normal broker usage.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Moquette to version 0.18.1 or later, which introduces a limit on topic depth and resolves the stack exhaustion issue.
  • If an immediate upgrade is infeasible, apply the upstream patch from the commit ca17e0be19e86d5e291f4532dfdc94616c8e0049 or rebuild the broker using the fixed source code; this adds the necessary depth check before recursive insertion.
  • Implement a runtime interceptor or configuration rule that rejects or logs clients attempting to publish or subscribe to topics exceeding a reasonable depth threshold; this acts as a temporary safeguard until the patch is deployed.

Generated by OpenCVE AI on September 23, 2026 at 17:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Moquette
Moquette moquette
CPEs cpe:2.3:a:moquette:moquette:*:*:*:*:*:*:*:*
Vendors & Products Moquette
Moquette moquette
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
First Time appeared Moquette-io
Moquette-io moquette
Vendors & Products Moquette-io
Moquette-io moquette
Type Values Removed Values Added
Description 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.
Title Moquette deeply nested MQTT topics can cause stack exhaustion
Weaknesses CWE-674
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 29, 2026, 2:02 AM
Reserved
Sep 22, 2026, 4:39 PM
Status
Modified
Published
Sep 23, 2026, 5:17 PM
Modified
Sep 29, 2026, 2:16 AM