CocoaMQTT: Denial of Service via Reachable Assertion in `PUBLISH` Packet Parsing
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-617.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nanomq | CocoaMQTT | before 2.2.2 | 2.2.2 | Patch available | CNA |
| — | CocoaMQTT (SwiftURL) | before 2.2.2 | 2.2.2 | Patch available | GHSA-r3fr-7m74-q7g2 |
- CocoaMQTT Vendornanomq Affected before 2.2.2 Fixed in 2.2.2 Patch available CNA
- CocoaMQTT (SwiftURL) Vendor— Affected before 2.2.2 Fixed in 2.2.2 Patch available GHSA-r3fr-7m74-q7g2
Remediation
- Fix · CNA CocoaMQTT (emqx) Fixed in 2.2.2
- Fix · GHSA-r3fr-7m74-q7g2 CocoaMQTT (SwiftURL) Fixed in 2.2.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-30867
- 2026-10-03 Alias added: GHSA-r3fr-7m74-q7g2
References
Patch 2
Sources
- CVE-2026-30867 · CVE Program
- CVE-2026-30867 · NVD
- FIRST EPSS
- GHSA-r3fr-7m74-q7g2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences