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-2023-0809

CVE-2023-0809: Eclipse Mosquitto DOS Vulnerability

CVE-2023-0809 is a denial of service flaw in Eclipse Mosquitto that allows attackers to trigger excessive memory allocation through malicious packets. This article covers the technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-0809 Overview

CVE-2023-0809 is a memory exhaustion vulnerability affecting Eclipse Mosquitto, a popular open-source MQTT message broker widely used in IoT deployments and enterprise messaging systems. The vulnerability exists in Mosquitto versions prior to 2.0.16, where excessive memory is allocated based on malicious initial packets that are not CONNECT packets. This allows remote attackers to cause denial of service conditions by forcing the broker to consume excessive memory resources without establishing a valid MQTT connection.

Critical Impact

Remote attackers can exhaust system memory on Mosquitto MQTT brokers by sending malformed initial packets, potentially disrupting IoT infrastructure and message processing services.

Affected Products

  • Eclipse Mosquitto versions prior to 2.0.16

Discovery Timeline

  • 2023-10-02 - CVE CVE-2023-0809 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-0809

Vulnerability Analysis

This vulnerability relates to improper handling of memory allocation during the initial connection phase of the MQTT protocol. When Mosquitto receives an initial packet from a client, it should expect a CONNECT packet as per the MQTT specification. However, versions before 2.0.16 fail to properly validate the packet type before allocating memory based on packet contents.

The root cause is tied to two Common Weakness Enumerations: CWE-789 (Memory Allocation with Excessive Size Value) and CWE-770 (Allocation of Resources Without Limits or Throttling). These weaknesses allow attackers to trigger uncontrolled memory consumption by sending crafted packets that exploit the broker's memory allocation logic.

Root Cause

The vulnerability stems from insufficient validation in the packet processing logic. When Mosquitto receives an initial connection from a client, the protocol handler allocates memory based on values parsed from the incoming packet without first confirming that the packet is a valid CONNECT message. This allows an attacker to send arbitrary data that triggers memory allocation based on attacker-controlled size values, leading to potential memory exhaustion.

Attack Vector

The attack is network-based and can be executed remotely without authentication. An attacker establishes a TCP connection to the Mosquitto broker's listening port (default 1883 for unencrypted or 8883 for TLS) and sends malformed packets that are not valid MQTT CONNECT messages. These packets contain size fields that cause the broker to allocate excessive amounts of memory.

The attack does not require user interaction and can be performed with low complexity. Since MQTT brokers are often exposed on network boundaries for IoT device communication, they present an accessible target for denial of service attacks. Multiple simultaneous attack connections could rapidly exhaust available system memory, causing the broker to become unresponsive or crash.

The vulnerability mechanism involves sending packets with inflated size values during the pre-authentication phase. Because the broker does not properly validate that incoming packets conform to the expected CONNECT message structure before allocating resources, it can be tricked into reserving memory for data that will never arrive or be processed legitimately. For detailed technical information, refer to the Mosquitto Blog Release Note.

Detection Methods for CVE-2023-0809

Indicators of Compromise

  • Unusual memory consumption spikes on systems running Mosquitto broker
  • High volume of incomplete TCP connections to MQTT ports (1883/8883)
  • Connection attempts that do not result in valid MQTT CONNECT packets
  • System performance degradation or out-of-memory conditions on broker hosts

Detection Strategies

  • Monitor Mosquitto process memory usage for abnormal growth patterns
  • Implement network monitoring to detect unusual connection patterns to MQTT ports
  • Configure alerting on connection attempts that fail to complete MQTT handshakes
  • Deploy intrusion detection rules to identify malformed MQTT packets

Monitoring Recommendations

  • Enable verbose logging on Mosquitto to capture connection attempt details
  • Set up resource monitoring alerts for memory thresholds on broker systems
  • Monitor network traffic patterns for signs of denial of service attempts
  • Implement connection rate limiting and monitor for rate limit violations

How to Mitigate CVE-2023-0809

Immediate Actions Required

  • Upgrade Eclipse Mosquitto to version 2.0.16 or later immediately
  • Implement network-level access controls to restrict access to MQTT ports
  • Deploy firewall rules to limit connections from untrusted sources
  • Consider implementing a reverse proxy with connection validation in front of Mosquitto

Patch Information

Eclipse has addressed this vulnerability in Mosquitto version 2.0.16. Organizations should upgrade to this version or later to remediate the vulnerability. The fix implements proper packet validation before memory allocation during the initial connection phase. For more details, see the Mosquitto Blog Release Note. Linux distributions have also released advisories, including the Gentoo GLSA 2024-09 Advisory.

Workarounds

  • Place Mosquitto behind a firewall or VPN to limit network exposure
  • Configure connection rate limiting at the network or application level
  • Use a load balancer with health checks to detect and mitigate DoS conditions
  • Implement resource limits (cgroups, ulimits) on the Mosquitto process
bash
# Example: Restricting Mosquitto access via iptables
# Limit connections to MQTT port from trusted networks only
iptables -A INPUT -p tcp --dport 1883 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 1883 -j DROP

# Example: Setting memory limits via systemd
# Add to mosquitto.service [Service] section
# MemoryMax=512M
# MemoryHigh=384M

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechEclipse Mosquitto

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-789

  • CWE-770
  • Technical References
  • Mosquitto Blog Release Note

  • Gentoo GLSA 2024-09 Advisory
  • Related CVEs
  • CVE-2024-8376: Eclipse Mosquitto Use-After-Free Flaw
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