CVE-2026-95843: Moquette malformed shared subscriptions can crash command processing

Published Sep 23, 2026
·
Updated

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.

Affected Software

1 affected component
Moquette Moquette<0.18.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Moquette to a version that resolves this vulnerability.

    Fixed in 0.18.1

Event History

Sep 23, 2026
CVE Published
via MITRE·04:29 PM
Data Sourced
via MITRE·04:29 PM
DescriptionWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A remote MQTT client that can send a subscription filter to the broker can trigger it. The client does not need to provide a valid shared-subscription filter; a value such as "$share/grp" is sufficient.

2

What is the operational impact of a successful trigger?

The malformed filter causes a StringIndexOutOfBoundsException during command handling. This terminates processing on the affected shared session event loop and can deny service to other client sessions assigned to that loop.

3

Which versions are affected and what is the remediation?

Moquette versions prior to 0.18.1 are affected. Upgrade to version 0.18.1, which fixes the validation order for shared-subscription filters.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203