Moquette is a lightweight Java MQTT broker. Prior to 0.18.1, PostOffice.publishWill publishes a client-controlled Last Will message through publish2Subscribers without invoking the authorizator.canWrite check used by normal PUBLISH paths. When anonymous access is enabled and topic ACLs restrict writes, a remote client can set an ACL-protected topic as the Last Will Topic during CONNECT and perform an abnormal client disconnect, causing the broker to inject attacker-controlled messages into a topic for which the client lacks write permission. This issue is fixed in version 0.18.1.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-862"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85058.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85058.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"264460424198365981025294149882277014898",
"11410191927348774178838709852851310256",
"273802157253247414129958982189405529275",
"315296026132642631038163665576809441438"
],
"threshold": 0.9
},
"id": "CVE-2026-85058-dd85d397",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/moquette-io/moquette/commit/e8ce83336acce69d8e9c11c98805217aa156a16b",
"target": {
"file": "broker/src/main/java/io/moquette/broker/Server.java"
}
}
]
"2026-09-26T08:04:13Z"