CVE-2026-95843

Moquette malformed shared subscriptions can crash command processing

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, PostOffice.subscribe parses a shared-subscription filter through SharedSubscriptionUtils.extractShareName before validating the complete $share/{shareName}/{topicFilter} structure. A remote client can send a filter such as $share/grp without a topic-filter portion, causing a StringIndexOutOfBoundsException while calculating the share name. The exception terminates command handling on the shared session event loop and can deny service to other client sessions assigned to that loop. This issue is fixed in version 0.18.1.

Analysis

AI-generated

Technical impact

Moquette is a lightweight Java MQTT broker. A malformed shared‑subscription filter such as "$share/grp" that omits the topic‑filter portion causes a StringIndexOutOfBoundsException during parsing. The exception terminates command handling on the shared session event loop and can deny service to other client sessions that share that loop. This is a classic input validation flaw (CWE‑20).

Affected Systems

The vulnerability affects the Moquette broker released by moquette‑io, specifically any version prior to 0.18.1. Users running versions below 0.18.1 are exposed to the issue.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. EPSS data is not available, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is a remote client that can send arbitrary subscription requests over the MQTT protocol; the description does not explicitly state it, so we infer a network‑based attack. Once exploited, the crash can disrupt service for other clients on the same event loop, potentially affecting availability for a segment of the system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Moquette broker to version 0.18.1 or later.
  • If an upgrade is not immediately possible, disable shared subscriptions by configuring the broker to reject $share topics or modify the configuration to turn shared subscription support off.
  • Monitor broker logs and presence of StringIndexOutOfBoundsException crashes, and implement alerts to detect denial‑of‑service incidents promptly.

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
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
Metrics ssvc

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

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, PostOffice.subscribe parses a shared-subscription filter through SharedSubscriptionUtils.extractShareName before validating the complete $share/{shareName}/{topicFilter} structure. A remote client can send a filter such as $share/grp without a topic-filter portion, causing a StringIndexOutOfBoundsException while calculating the share name. The exception terminates command handling on the shared session event loop and can deny service to other client sessions assigned to that loop. This issue is fixed in version 0.18.1.
Title Moquette malformed shared subscriptions can crash command processing
Weaknesses CWE-20
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
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 23, 2026, 5:58 PM
Reserved
Sep 22, 2026, 4:39 PM
Status
Analyzed
Published
Sep 23, 2026, 5:17 PM
Modified
Sep 25, 2026, 1:34 PM