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.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-674 — CWE-674: Uncontrolled Recursion
Affected products
| Vendor | Product | Versions |
|---|---|---|
| moquette-io | moquette | < 0.18.1 |
References
- https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq (x_refsource_CONFIRM)
- https://github.com/moquette-io/moquette/commit/ca17e0be19e86d5e291f4532dfdc94616c8e0049 (x_refsource_MISC)
- https://github.com/moquette-io/moquette/releases/tag/v0.18.1 (x_refsource_MISC)
Generated from the official CVE List on 24 Sep 2026 07:02 UTC.