# CVE-2026-30867: CocoaMQTT: Denial of Service via Reachable Assertion in `PUBLISH` Packet Parsing

- Severity: Medium 5.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-02T13:57:06.394Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-r3fr-7m74-q7g2
- Weaknesses: CWE-617
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- emqx CocoaMQTT: < 2.2.2; before 2.2.2
- CocoaMQTT (SwiftURL): before 2.2.2

## Every score

- GitHub_M: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/emqx/CocoaMQTT/security/advisories/GHSA-r3fr-7m74-q7g2> (exploit, vendor-advisory, web)
- <https://github.com/emqx/CocoaMQTT/pull/659> (issue-tracking, patch, web)
- <https://github.com/emqx/CocoaMQTT/commit/010bca6f61b97d726252f61641d331a2bf82b338> (patch, web)
- <https://github.com/emqx/CocoaMQTT/releases/tag/2.2.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-30867> (advisory)
- <https://github.com/emqx/CocoaMQTT> (package)

## Sources

- CVE List: [CVE-2026-30867](https://www.cve.org/CVERecord?id=CVE-2026-30867), CVE Terms of Use, modified 2026-04-02
- GitHub Advisory Database: [GHSA-r3fr-7m74-q7g2](https://github.com/advisories/GHSA-r3fr-7m74-q7g2), CC-BY-4.0, modified 2026-04-03
- NVD: [CVE-2026-30867](https://nvd.nist.gov/vuln/detail/CVE-2026-30867), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-30867 · Whole record: https://cve.day/CVE-2026-30867.json · Rebuilt by cve.day 2026-11-25T22:59:17.780Z
