The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-40046

CVE-2026-40046: Apache ActiveMQ Buffer Overflow Vulnerability

CVE-2026-40046 is a buffer overflow flaw in Apache ActiveMQ caused by an integer overflow in MQTT packet validation. This vulnerability affects versions 6.0.0 to 6.2.3. Learn about the technical details, impact, and mitigation.

Published: April 9, 2026

CVE-2026-40046 Overview

An Integer Overflow or Wraparound vulnerability (CWE-190) has been identified in Apache ActiveMQ affecting versions 6.0.0 through 6.2.3. This vulnerability stems from an incomplete fix for CVE-2025-66168, where the MQTT control packet remaining length field validation patch was applied only to version 5.19.2 and future 5.19.x releases but was inadvertently omitted from all 6.0.0+ versions.

Critical Impact

Integer overflow vulnerabilities in message broker systems like Apache ActiveMQ can potentially lead to memory corruption, denial of service, or in severe cases, remote code execution through maliciously crafted MQTT packets.

Affected Products

  • Apache ActiveMQ: from 6.0.0 before 6.2.4
  • Apache ActiveMQ All: from 6.0.0 before 6.2.4
  • Apache ActiveMQ MQTT: from 6.0.0 before 6.2.4

Discovery Timeline

  • 2026-04-09 - CVE-2026-40046 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-40046

Vulnerability Analysis

The vulnerability exists within the MQTT protocol handling component of Apache ActiveMQ. When processing MQTT control packets, the broker fails to properly validate the remaining length field, which uses a variable-length encoding scheme as defined in the MQTT specification. Without proper bounds checking, an attacker can supply a maliciously crafted value that causes an integer overflow during length calculations.

This issue is particularly significant because it represents a regression in security controls—the fix that was implemented for CVE-2025-66168 was not backported to the 6.x branch, leaving all Apache ActiveMQ deployments running version 6.0.0 through 6.2.3 exposed to this attack vector.

Root Cause

The root cause is an incomplete patch deployment across version branches. The MQTT remaining length field uses a variable-length encoding that can represent values from 0 to 268,435,455 bytes. When the validation logic is missing or improperly implemented, specially crafted length values can trigger an integer wraparound condition during memory allocation or buffer size calculations.

Attack Vector

An attacker with network access to the MQTT broker port can exploit this vulnerability by sending specially crafted MQTT control packets with malformed remaining length fields. The MQTT protocol typically operates on TCP port 1883 (unencrypted) or 8883 (TLS). The attack does not require authentication if the broker accepts anonymous connections, which is a common configuration in development or improperly secured production environments.

The exploitation involves:

  1. Establishing a TCP connection to the ActiveMQ MQTT listener
  2. Sending a malformed MQTT CONNECT or other control packet with an integer overflow-inducing remaining length value
  3. Triggering memory corruption or denial of service when the broker processes the malformed packet

For detailed technical information about the exploitation mechanism, refer to the Apache ActiveMQ Security Advisory.

Detection Methods for CVE-2026-40046

Indicators of Compromise

  • Unusual MQTT connection patterns with malformed packet headers arriving at the broker
  • ActiveMQ broker crashes or unexpected restarts without clear operational cause
  • Memory utilization anomalies in the ActiveMQ Java process
  • Log entries indicating MQTT protocol parsing errors or buffer-related exceptions

Detection Strategies

  • Deploy network intrusion detection rules to identify MQTT packets with abnormally large or malformed remaining length fields
  • Monitor ActiveMQ broker logs for MQTT parsing exceptions or unexpected disconnections
  • Implement application performance monitoring to detect memory allocation anomalies
  • Use SentinelOne Singularity Platform to detect exploitation attempts and memory corruption indicators

Monitoring Recommendations

  • Enable detailed MQTT protocol logging in ActiveMQ configuration
  • Configure alerts for ActiveMQ service restarts or crashes
  • Monitor network traffic on MQTT ports (1883, 8883) for anomalous patterns
  • Implement heap dump analysis for investigating potential exploitation attempts

How to Mitigate CVE-2026-40046

Immediate Actions Required

  • Upgrade Apache ActiveMQ to version 6.2.4 or later immediately
  • If upgrade is not immediately possible, consider temporarily disabling the MQTT transport connector
  • Restrict network access to MQTT ports using firewall rules to trusted clients only
  • Review and implement authentication requirements for MQTT connections

Patch Information

Users are recommended to upgrade to version 6.2.4 or a 5.19.x version starting with 5.19.2 or later (currently latest is 5.19.5), which fixes the issue. Patch information and release notes are available through the Apache ActiveMQ Security Advisory and the Apache Mailing List Thread.

Workarounds

  • Disable the MQTT transport connector if not required by commenting out or removing the MQTT transportConnector entry in activemq.xml
  • Implement network-level filtering to restrict MQTT access to known trusted IP addresses
  • Deploy a reverse proxy or API gateway with protocol validation capabilities in front of the MQTT endpoint
  • Consider using the 5.19.x branch (5.19.2+) as an alternative if the 6.x branch features are not required
bash
# Disable MQTT transport connector in activemq.xml
# Comment out or remove the following line in the transportConnectors section:
# <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883"/>

# Restrict MQTT port access via iptables (Linux)
iptables -A INPUT -p tcp --dport 1883 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 1883 -j DROP

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechApache Activemq

  • SeverityNONE

  • CVSS ScoreN/A

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-190
  • Technical References
  • Apache ActiveMQ Security Advisory

  • Apache Mailing List Thread

  • CVE-2025-66168 Record
  • Related CVEs
  • CVE-2025-66168: Apache ActiveMQ Buffer Overflow Flaw

  • CVE-2026-34197: Apache ActiveMQ RCE Vulnerability

  • CVE-2026-33227: Apache ActiveMQ Path Traversal Flaw

  • CVE-2025-54539: Apache ActiveMQ NMS AMQP RCE 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