Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-30867

CVE-2026-30867: CocoaMQTT Denial of Service Vulnerability

CVE-2026-30867 is a denial of service vulnerability in CocoaMQTT that allows attackers to remotely crash iOS/macOS/tvOS applications. This article covers the technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-30867 Overview

CVE-2026-30867 is a denial of service vulnerability in CocoaMQTT, a popular MQTT 5.0 client library for iOS, macOS, and tvOS applications written in Swift. The vulnerability exists in the packet parsing logic of CocoaMQTT that allows an attacker or a compromised MQTT broker to remotely crash host applications. Prior to version 2.2.2, the library fails to properly validate MQTT packet data, enabling a persistent denial of service attack that can effectively "brick" mobile applications.

Critical Impact

Attackers can publish a 4-byte malformed payload with the RETAIN flag to persistently crash any vulnerable iOS/macOS/tvOS application that subscribes to the affected topic, rendering the application unusable until the retained message is manually removed from the broker database.

Affected Products

  • CocoaMQTT versions prior to 2.2.2
  • iOS applications using vulnerable CocoaMQTT library
  • macOS applications using vulnerable CocoaMQTT library
  • tvOS applications using vulnerable CocoaMQTT library

Discovery Timeline

  • 2026-04-02 - CVE CVE-2026-30867 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-30867

Vulnerability Analysis

This vulnerability is classified under CWE-617 (Reachable Assertion), indicating that the CocoaMQTT library contains an assertion or error-handling mechanism that can be triggered through malformed input, causing the application to crash. The flaw resides in how the library processes incoming MQTT packets from the broker.

The attack is particularly severe due to the persistent nature of MQTT retained messages. When an attacker publishes a malformed 4-byte payload to a shared topic with the RETAIN flag set to true, the MQTT broker stores this payload. Subsequently, any time a vulnerable client connects and subscribes to that topic, the broker automatically delivers the malformed packet to the client. The application crashes in the background before the user can interact with it, and this cycle repeats every time the app attempts to reconnect.

Root Cause

The root cause of this vulnerability lies in improper input validation within the packet parsing logic of the CocoaMQTT library. The library does not adequately validate the structure and content of incoming MQTT packets before processing them. When a malformed 4-byte payload is received, the parsing routine encounters unexpected data that triggers an assertion failure or unhandled exception, causing the application to terminate abruptly.

This represents a classic case of insufficient boundary checking and input sanitization in network protocol parsing code, where the library assumes all incoming data from the broker is well-formed and conforms to the MQTT specification.

Attack Vector

The attack vector for CVE-2026-30867 operates through the network layer and requires an attacker to have authenticated access to an MQTT broker (low privileges required) while also requiring some user interaction for full exploitation. The attack chain works as follows:

The attacker crafts a specific 4-byte malformed MQTT payload designed to trigger the parsing vulnerability in CocoaMQTT. This payload is then published to a topic on an MQTT broker with the RETAIN flag enabled. The broker persists this message as a retained message for the topic.

When any iOS, macOS, or tvOS application using a vulnerable version of CocoaMQTT connects to the broker and subscribes to the affected topic, the broker immediately delivers the retained malformed message. The CocoaMQTT library attempts to parse this message, encounters the malformed data, and crashes the host application. Because the message is retained, this crash occurs every time the application attempts to reconnect, creating a persistent denial of service condition.

Detection Methods for CVE-2026-30867

Indicators of Compromise

  • Repeated application crashes immediately after connecting to an MQTT broker
  • Application crash logs showing exceptions or assertions in CocoaMQTT packet parsing code
  • MQTT broker logs showing retained messages with unusual 4-byte payloads on subscribed topics
  • User reports of applications becoming unusable after broker connection attempts

Detection Strategies

  • Monitor application crash analytics for patterns indicating CocoaMQTT-related crashes during MQTT connection establishment
  • Implement broker-side monitoring to detect and flag suspicious retained messages with abnormally small payloads
  • Review MQTT broker access logs for unauthorized publish operations with RETAIN flags enabled
  • Deploy application-level telemetry to track connection lifecycle events and identify crash loops

Monitoring Recommendations

  • Configure crash reporting tools to alert on CocoaMQTT library exceptions
  • Implement MQTT broker audit logging for all retained message publications
  • Monitor for unusual patterns of client disconnections and reconnections
  • Set up automated alerts for repeated application crashes on iOS/macOS/tvOS devices

How to Mitigate CVE-2026-30867

Immediate Actions Required

  • Upgrade CocoaMQTT to version 2.2.2 or later immediately
  • Review MQTT broker topic configurations for any suspicious retained messages
  • Audit broker access controls to limit who can publish retained messages
  • Consider temporarily disabling retained message functionality on sensitive topics until patching is complete

Patch Information

The vulnerability has been addressed in CocoaMQTT version 2.2.2. The fix improves input validation in the packet parsing logic to properly handle malformed payloads without crashing the host application. The patch is available through the CocoaMQTT Release 2.2.2.

For detailed information about the fix implementation, refer to the GitHub Commit Update and GitHub Pull Request #659. Additional security context is available in the GitHub Security Advisory GHSA-r3fr-7m74-q7g2.

Workarounds

  • Implement broker-side message filtering to reject or quarantine abnormally small payloads before they reach clients
  • Clear all retained messages from affected topics on the MQTT broker to break the persistent crash loop
  • Deploy network-level filtering to inspect and validate MQTT traffic before it reaches vulnerable applications
  • Consider implementing application-level crash recovery logic that detects repeated crashes and skips problematic topic subscriptions
bash
# Clear retained messages from a topic (broker-specific command example)
# Consult your MQTT broker documentation for exact syntax
mosquitto_pub -h broker.example.com -t "affected/topic" -n -r -d

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechCocoamqtt

  • SeverityMEDIUM

  • CVSS Score5.7

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-617
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request #659

  • CocoaMQTT Release 2.2.2

  • GitHub Security Advisory GHSA-r3fr-7m74-q7g2
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English