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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-23T16:11:18.000Z
- Modified: 2026-10-19T19:30:12.063Z
- Also known as: GHSA-5f42-97gr-vfhq
- Related: CVE-2026-85724, CVE-2026-95842, CVE-2026-95844, CVE-2026-95845, CVE-2026-95846, CVE-2026-95847, CVE-2026-95848
- Weaknesses: CWE-20, CWE-155, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- moquette-io moquette: < 0.18.1
- io.moquette:moquette-broker (Maven): before 0.18.1
- moquette moquette: before 0.18.1

## Every score

- GitHub_M: CVSS:4.0 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`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/moquette-io/moquette/pull/962> (patch)
- <https://github.com/moquette-io/moquette/commit/affdc71fdba92dc020421678970ae70518fb6da2> (patch, web)
- <https://github.com/moquette-io/moquette/releases/tag/v0.18.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-85724> (advisory)
- <https://github.com/moquette-io/moquette/pull/959> (web)
- <https://github.com/moquette-io/moquette/pull/958> (web)
- <https://github.com/moquette-io/moquette/pull/957> (web)
- <https://github.com/moquette-io/moquette/commit/f5a323fe782d1505c0097498cb22eb6ec6c96973> (web)
- <https://github.com/moquette-io/moquette/commit/d77753542e262b7aa573dee3c2b05e44439bbd96> (web)
- <https://github.com/moquette-io/moquette/commit/ca17e0be19e86d5e291f4532dfdc94616c8e0049> (web)
- <https://github.com/moquette-io/moquette/commit/c65b3e90fa03e562e2c2fa69c3ee916c2cbfbd2b> (web)
- <https://github.com/moquette-io/moquette/commit/b4a98bb3f3425ece476ed073aa080c627c1239af> (web)
- <https://github.com/moquette-io/moquette/commit/86feb7c31e6fac849c465d8079d08c0e7ef01cdf> (web)
- <https://github.com/moquette-io/moquette/commit/72d6c8257191d2e4b2e3aa11ab25fd09f88c6cb7> (web)
- <https://github.com/moquette-io/moquette/commit/26498631e92d50440b4e3ed42fa546253cc4090c> (web)
- <https://github.com/moquette-io/moquette/commit/14a2f4fd280c8f6a791600c306cbccecb7c67007> (web)
- <https://github.com/moquette-io/moquette> (package)

## Sources

- CVE List: [CVE-2026-95843](https://www.cve.org/CVERecord?id=CVE-2026-95843), CVE Terms of Use, modified 2026-09-23
- GitHub Advisory Database: [GHSA-5f42-97gr-vfhq](https://github.com/advisories/GHSA-5f42-97gr-vfhq), CC-BY-4.0, modified 2026-10-19
- NVD: [CVE-2026-95843](https://nvd.nist.gov/vuln/detail/CVE-2026-95843), Public domain, modified 2026-09-25

---

Page: https://cve.day/CVE-2026-95843 · Whole record: https://cve.day/CVE-2026-95843.json · Rebuilt by cve.day 2026-11-25T22:59:40.640Z
