CVE-2026-95846
7.5 HIGHpublic exploit availablePublished 2026-09-23 · Updated 2026-09-25
AI risk analysis
- 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.
- 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.
- Prioritized remediation
- Upgrade to moquette version 0.18.1 or later to fix the Last-Will message authorization bypass vulnerability.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-862
Vendors
moquette
Products
moquette
Public exploit & PoC references
- https://github.com/moquette-io/moquette/commit/f5a323fe782d1505c0097498cb22eb6ec6c96973 Patch
- https://github.com/moquette-io/moquette/releases/tag/v0.18.1 Release Notes
- https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq Exploit, Mitigation, Vendor Advisory
- https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq Exploit, Mitigation, Vendor Advisory
References
- https://github.com/moquette-io/moquette/commit/f5a323fe782d1505c0097498cb22eb6ec6c96973 Patch
- https://github.com/moquette-io/moquette/releases/tag/v0.18.1 Release Notes
- https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq Exploit, Mitigation, Vendor Advisory
- https://github.com/moquette-io/moquette/security/advisories/GHSA-5f42-97gr-vfhq Exploit, Mitigation, Vendor Advisory
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.