Read the docs
TI-2026-23696 Aliases CVE-2026-30867GHSA-r3fr-7m74-q7g2

CocoaMQTT: Denial of Service via Reachable Assertion in `PUBLISH` Packet Parsing

Priority LOW 29CWE-617Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00331 26th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed CocoaMQTT (emqx): 2.2.2CocoaMQTT (SwiftURL): 2.2.2

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

VendorProductAffected versionsFixed inStatusSource
nanomqCocoaMQTTbefore 2.2.22.2.2Patch availableCNA
—CocoaMQTT (SwiftURL)before 2.2.22.2.2Patch availableGHSA-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

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:emqx:cocoamqtt:*:*:*:*:*:swift:*:*before 2.2.2Vulnerablenanomq
cpe:2.3:o:apple:iphone_os:-:*:*:*:*:*:*:*not specified by NVDRunning onApple
cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:*not specified by NVDRunning onApple
  • cpe:2.3:a:emqx:cocoamqtt:*:*:*:*:*:swift:*:* Versions before 2.2.2 Vulnerable ·nanomq
  • cpe:2.3:o:apple:iphone_os:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Apple
  • cpe:2.3:o:apple:macos:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Apple

Remediation

  • Fix · CNA CocoaMQTT (emqx) Fixed in 2.2.2
  • Fix · GHSA-r3fr-7m74-q7g2 CocoaMQTT (SwiftURL) Fixed in 2.2.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-30867
  2. 2026-10-03 Alias added: GHSA-r3fr-7m74-q7g2

References

Sources