CVE-2026-95846: Moquette Last-Will authorization bypass

CVE-2026-95846 · Severity: high · CVSS 7.5 · Published 2026-09-23

Moquette is a lightweight Java MQTT broker used to manage message routing in IoT and real-time systems. A flaw in versions before 0.18.1 allows an attacker to publish messages to restricted topics by configuring a Last-Will message on a topic they lack write permission to. When the attacker's connection drops unexpectedly, the broker publishes the unauthorized message, allowing injection of malicious content into protected channels.

Technologies: Moquette. Vendors: Moquette.

Quick answers

Is CVE-2026-95846 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-95846 being exploited in the wild.
How severe is CVE-2026-95846?
High severity, with a CVSS score of 7.5, published 23 September 2026.
Which products and versions are affected?
Moquette before 0.18.1.
Is there a fix for CVE-2026-95846?
A patch was published on 2026-08-01: Version 0.18.1 released with authorization check for Last Will messages Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-95846 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-95846?
Check whether you run Moquette at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The PostOffice.publishWill method fails to apply canWrite authorization checks and reserved-topic validation when publishing a client's Last-Will message, whereas normal PUBLISH operations enforce these restrictions. A connected attacker can exploit this by setting a Will message on a topic for which they lack write permissions; upon unexpected disconnection, the broker publishes the unauthorized message. The vulnerability is fixed in version 0.18.1 by adding authorization checks at connection time.

Affected products

  • Moquette Moquette before 0.18.1

Timeline

  • 2026-09-23: disclosed
  • 2026-08-01: patched: Version 0.18.1 released with authorization check for Last Will messages

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.