{"id":"CVE-2026-95846","published":"2026-09-23T17:17:21.627","lastModified":"2026-09-25T13:34:02.580","description":"Moquette is a lightweight Java MQTT broker. Prior to 0.18.1, PostOffice.publishWill publishes a client's Last-Will message without applying the canWrite authorization and reserved-topic checks used for a normal PUBLISH. A client can configure a Will for a topic that the client is not permitted to write and cause the broker to publish the unauthorized message when the client disconnects unexpectedly. This issue allows unauthorized message injection into restricted topics. This issue is fixed in version 0.18.1.","cvssScore":7.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","cwes":["CWE-862"],"vendors":["moquette"],"products":["moquette"],"references":[{"url":"https://github.com/moquette-io/moquette/commit/f5a323fe782d1505c0097498cb22eb6ec6c96973","tags":["Patch"]},{"url":"https://github.com/moquette-io/moquette/releases/tag/v0.18.1","tags":["Release Notes"]},{"url":"https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq","tags":["Exploit","Mitigation","Vendor Advisory"]},{"url":"https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq","tags":["Exploit","Mitigation","Vendor Advisory"]}],"exploitRefs":[{"url":"https://github.com/moquette-io/moquette/commit/f5a323fe782d1505c0097498cb22eb6ec6c96973","tags":["Patch"]},{"url":"https://github.com/moquette-io/moquette/releases/tag/v0.18.1","tags":["Release Notes"]},{"url":"https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq","tags":["Exploit","Mitigation","Vendor Advisory"]},{"url":"https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq","tags":["Exploit","Mitigation","Vendor Advisory"]}],"hasPoc":true,"ai":{"summary":"Moquette MQTT broker has a privilege escalation flaw where clients can publish unauthorized Last-Will messages to topics they don't have write permissions for, allowing injection of messages into restricted topics when clients disconnect unexpectedly.","exploitability":"Easy to exploit with minimal preconditions - any client can configure a Will message for any topic and trigger it upon disconnection, bypassing normal authorization checks.","blast_radius":"High impact in environments where MQTT brokers control access to sensitive topics, as unauthorized messages could be injected into critical system or application channels during unexpected client disconnections.","remediation":"Upgrade to moquette version 0.18.1 or later to fix the Last-Will message authorization bypass vulnerability.","detection":"Monitor for unexpected PUBLISH operations to restricted topics in broker logs that occur during client disconnection events, particularly looking for unauthorized topic access patterns in the PostOffice.publishWill method.","tags":["mqtt","authorization","broker","message-injection"],"model":"garnet-coder","analyzedAt":"2026-10-18T16:07:35.147Z"}}