CVE-2026-30867
published medium CVSS 3.1 · 5.7CocoaMQTT: Denial of Service via Reachable Assertion in `PUBLISH` Packet Parsing
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| emqx | — | CocoaMQTT< 2.2.2 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.7 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| emqx | CocoaMQTT | < 2.2.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-617 CWE-617: Reachable Assertion
References
4Provider assertions
2GitHub_M · cna
CocoaMQTT: Denial of Service via Reachable Assertion in `PUBLISH` Packet Parsing
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e9609580a25ed155db6a39628d5f45018411597fd07e06ae2adb7ae7a754347a
- Ingested
- 23 Sep 2026, 09:09:24 UTC
- Source record
- Official CVE record