Moquette
Moquette malformed shared subscriptions can crash command processing
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.18.1
Fixed in 0.18.1
Mitigation
Upgrade moquette to 0.18.1 or later.
References
- Vendor advisory github.com/moquette-io/moquette/security/advis…
- Patch github.com/moquette-io/moquette/pull/962
- Patch github.com/moquette-io/moquette/commit/affdc71…
1 more
- Release notes github.com/moquette-io/moquette/releases/tag/v…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.