{"id":"CVE-2026-85058","summary":"Moquette: Missing Authorization in io.moquette:moquette-broker","details":"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.","aliases":["GHSA-9jjc-fw8x-fmwx"],"modified":"2026-10-28T11:18:51.712527329Z","published":"2026-09-18T17:40:39.113Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85058.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-862"]},"references":[{"type":"WEB","url":"https://github.com/moquette-io/moquette/releases/tag/v0.18.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85058.json"},{"type":"ADVISORY","url":"https://github.com/moquette-io/moquette/security/advisories/GHSA-9jjc-fw8x-fmwx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85058"},{"type":"FIX","url":"https://github.com/moquette-io/moquette/commit/e23df019f6a11e22c7d2047d4f86d07095466c97"},{"type":"FIX","url":"https://github.com/moquette-io/moquette/commit/f5a323fe782d1505c0097498cb22eb6ec6c96973"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/moquette-io/moquette","events":[{"introduced":"0"},{"fixed":"e8ce83336acce69d8e9c11c98805217aa156a16b"},{"fixed":"e23df019f6a11e22c7d2047d4f86d07095466c97"},{"fixed":"f5a323fe782d1505c0097498cb22eb6ec6c96973"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"0.18.1"}]},{"range":[{"fixed":"e23df019f6a11e22c7d2047d4f86d07095466c97"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"f5a323fe782d1505c0097498cb22eb6ec6c96973"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"e8ce83336acce69d8e9c11c98805217aa156a16b"}],"source":"REFERENCES_TAG","original_tag":"v0.18.1"}]}}],"versions":["v0.18.0","0.18.0","IOSB-v0.18.x-start","last_gradle","v0.12.1","v0.12","v0.11","second_try_with_osgi_giveup","last_with_maven","v0.10","before_sofia2","v0.9","v0.8","last_with_ringbuffer","0.7","last_osgi"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85058.json","vanir_signatures":[{"target":{"file":"broker/src/main/java/io/moquette/broker/PostOffice.java"},"deprecated":false,"digest":{"line_hashes":["93344037886889013058802880122250972786","215424287808860444922688016470130533230","327029001158716180009488700243281639820"],"threshold":0.9},"id":"CVE-2026-85058-18ab0d4e","signature_type":"Line","signature_version":"v1","source":"https://github.com/moquette-io/moquette/commit/f5a323fe782d1505c0097498cb22eb6ec6c96973"},{"signature_version":"v1","source":"https://github.com/moquette-io/moquette/commit/f5a323fe782d1505c0097498cb22eb6ec6c96973","target":{"file":"broker/src/main/java/io/moquette/broker/PostOffice.java","function":"publishWill"},"deprecated":false,"digest":{"function_hash":"80257911369444266460095870659529128766","length":535},"id":"CVE-2026-85058-51aa42a0","signature_type":"Function"},{"digest":{"line_hashes":["93344037886889013058802880122250972786","215424287808860444922688016470130533230","327029001158716180009488700243281639820"],"threshold":0.9},"id":"CVE-2026-85058-dafa77ea","signature_type":"Line","signature_version":"v1","source":"https://github.com/moquette-io/moquette/commit/e23df019f6a11e22c7d2047d4f86d07095466c97","target":{"file":"broker/src/main/java/io/moquette/broker/PostOffice.java"},"deprecated":false},{"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"},"deprecated":false,"digest":{"line_hashes":["264460424198365981025294149882277014898","11410191927348774178838709852851310256","273802157253247414129958982189405529275","315296026132642631038163665576809441438"],"threshold":0.9}},{"digest":{"function_hash":"80257911369444266460095870659529128766","length":535},"id":"CVE-2026-85058-f03af28d","signature_type":"Function","signature_version":"v1","source":"https://github.com/moquette-io/moquette/commit/e23df019f6a11e22c7d2047d4f86d07095466c97","target":{"file":"broker/src/main/java/io/moquette/broker/PostOffice.java","function":"publishWill"},"deprecated":false}],"vanir_signatures_modified":"2026-10-28T11:18:51Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}