CVE-2026-30867
MEDIUM 6.5CVSS 3.1CocoaMQTT: Denial of Service via Reachable Assertion in `PUBLISH` Packet Parsing
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.
- Published
- 2 Apr 2026
- Last modified
- 4 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-617
- Also known as
- GHSA-r3fr-7m74-q7g2
- Sources
- NVDJSONOSV GHSA-r3fr-7m74-q7g2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | emqx | cocoamqttcpe:2.3:a:emqx:cocoamqtt:*:*:*:*:*:swift:*:* |
< 2.2.2 | 2.2.2 |
| OSV | SwiftURL | github.com/emqx/CocoaMQTT | < 2.2.2 | 2.2.2 |
References
- https://github.com/emqx/CocoaMQTT/commit/010bca6f61b97d726252f61641d331a2bf82b338 · Patch, WEB
- https://github.com/emqx/CocoaMQTT/pull/659 · Issue Tracking, Patch, WEB
- https://github.com/emqx/CocoaMQTT/releases/tag/2.2.2 · Release Notes, WEB
- https://github.com/emqx/CocoaMQTT/security/advisories/GHSA-r3fr-7m74-q7g2 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-30867 · ADVISORY
- https://github.com/emqx/CocoaMQTT · PACKAGE
History
- 4 Dec 2026 19:09 UTC · OSV: affected list changed (1 entry)
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 2 Apr 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 3 Apr 2026)