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.
Published: 2026-09-23
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: Unauthorized Message Injection
Action: Patch
AI Analysis

Impact

Moquette, a lightweight Java MQTT broker, allows a client to configure a Last‑Will message for a topic to which it does not have write access. The broker publishes this message when the client disconnects unexpectedly without enforcing the write authorization or reserved‑topic checks that normally protect normal PUBLISH traffic. This defect enables any client that can connect to the broker to inject messages into restricted topics, potentially disrupting services, leaking information or modifying data that subscribers are not permitted to see.

Affected Systems

The flaw exists in all Moquette releases prior to 0.18.1. The affected product is the Moquette MQTT broker, with all versions before v0.18.1 susceptible. The vendor is moquette‑io and the product name is Moquette.

Risk and Exploitability

The vulnerability carries a CVSS score of 8.7, indicating high severity. While an EPSS score is not currently available, the lack of mitigation in earlier versions and the ability for any authenticated or unauthenticated client to set an unauthorized Last‑Will suggest a realistic attack surface. The flaw is not listed in the CISA KEV catalog, but its severity and potential impact warrant immediate attention. Attackers can exploit the weakness simply by configuring an unexpected disconnection for a client with a prohibited Last‑Will topic; no additional privileges or knowledge are required beyond initial broker access.

Generated by OpenCVE AI on September 23, 2026 at 17:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Moquette to version 0.18.1 or later.
  • If upgrading is not immediately possible, disable the use of Last‑Will messages or enforce client‑side validation to prevent setting a Will on unauthorized topics.
  • Configure broker access controls to ensure that only authorized clients can publish to reserved topics and that the canWrite check applies to all PUBLISH operations, including Last‑Will delivery.

Generated by OpenCVE AI on September 23, 2026 at 17:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 23 Sep 2026 16:45:00 +0000

Type Values Removed Values Added
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.
Title Moquette publishes Last-Will messages without enforcing write authorization
Weaknesses CWE-862
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-23T16:29:54.130Z

Reserved: 2026-09-22T16:39:45.793Z

Link: CVE-2026-95846

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-23T17:17:21.627

Modified: 2026-09-23T17:17:21.627

Link: CVE-2026-95846

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-23T17:30:06Z

Weaknesses