{"id":"CVE-2026-30867","published":"2026-04-02T13:57:06Z","modified":"2026-04-02T16:23:13Z","title":"CocoaMQTT: Denial of Service via Reachable Assertion in `PUBLISH` Packet Parsing","vendor":"emqx","product":"CocoaMQTT","tier":"tail","description":{"text":"CocoaMQTT is a MQTT 5.0 client library for iOS and macOS written in Swift. Prior to version 2.2.2, a vulnerability exists in the packet parsing logic of CocoaMQTT that allows an attacker (or a compromised/malicious MQTT broker) to remotely crash the host iOS/macOS/tvOS application. If an attacker publishes the 4-byte malformed payload to a shared topic with the RETAIN flag set to true, the MQTT broker will persist the payload. Any time a vulnerable client connects and subscribes to that topic, the broker will automatically push the malformed packet. The app will instantly crash in the background before the user can even interact with it. This effectively \"bricks\" the mobile application (a persistent DoS) until the retained message is manually wiped from the broker database. This issue has been patched in version 2.2.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00338,"percentile":0.27943,"provenance":"source"},"cwes":[{"id":"CWE-617","name":"Reachable Assertion"}],"references":[{"url":"https://github.com/emqx/CocoaMQTT/security/advisories/GHSA-r3fr-7m74-q7g2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/emqx/CocoaMQTT/pull/659","tags":["x_refsource_MISC"]},{"url":"https://github.com/emqx/CocoaMQTT/commit/010bca6f61b97d726252f61641d331a2bf82b338","tags":["x_refsource_MISC"]},{"url":"https://github.com/emqx/CocoaMQTT/releases/tag/2.2.2","tags":["x_refsource_MISC"]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":5.59},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"emqx","affectedVersions":[{"vendor":"emqx","product":"CocoaMQTT","versions":["< 2.2.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-02T16:18:50.452760Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"SwiftURL","package":"CocoaMQTT","vulnerableRanges":["<2.2.2"],"patched":["2.2.2"],"from":["GHSA-r3fr-7m74-q7g2"],"provenance":"source"}],"summary":{"text":"CocoaMQTT, an MQTT 5.0 client library for iOS and macOS written in Swift, contains a flaw in its PUBLISH packet parsing logic that can be triggered by a reachable assertion. An attacker with the ability to publish to a topic on the broker, or a compromised or malicious broker, can send a malformed payload with the RETAIN flag set so that the broker persists and redelivers it to any client subscribing to that topic, causing a denial of service in the host application, which requires only that the client connect and subscribe and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:15Z"},"euvd":{"id":"EUVD-2026-18235","exploited":false,"provenance":"source"}}