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
    • 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-32135

CVE-2026-32135: Emqx Nanomq Buffer Overflow Vulnerability

CVE-2026-32135 is a heap buffer overflow flaw in Emqx Nanomq MQTT Broker that allows remote attackers to exploit the REST API. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-32135 Overview

CVE-2026-32135 is a heap buffer overflow vulnerability affecting NanoMQ MQTT Broker, an all-around Edge Messaging Platform developed by EMQ Technologies. The vulnerability exists in the uri_param_parse function of NanoMQ's REST API, where an off-by-one error during memory allocation for query parameter keys and values allows an attacker to write a null byte beyond the allocated buffer boundary. This flaw can be triggered remotely via a crafted HTTP request, potentially leading to denial of service conditions.

Critical Impact

Remote attackers can exploit this heap buffer overflow via network-accessible REST API endpoints to cause service disruption. The vulnerability requires no authentication or user interaction to exploit.

Affected Products

  • emqx nanomq versions prior to 0.24.11

Discovery Timeline

  • 2026-04-20 - CVE CVE-2026-32135 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-32135

Vulnerability Analysis

This heap buffer overflow vulnerability (CWE-122) occurs in the uri_param_parse function within NanoMQ's REST API handler. When processing HTTP requests containing query parameters, the function allocates memory for storing parameter keys and values. However, due to an off-by-one error in the allocation calculation, the buffer is allocated one byte short of what is actually needed to properly store the data including its null terminator.

The vulnerability is network-accessible, requiring no authentication or user interaction to trigger. An attacker with network access to the NanoMQ REST API can craft a malicious HTTP request that exploits this boundary condition, causing a null byte to be written beyond the allocated heap buffer. While the immediate impact is primarily availability-focused due to the limited single-byte overwrite, heap corruption vulnerabilities can sometimes lead to more severe exploitation scenarios depending on heap layout and memory allocator behavior.

Root Cause

The root cause is an off-by-one error in memory allocation within the uri_param_parse function. When calculating the required buffer size for query parameter keys and values, the code fails to account for the null terminator byte, resulting in a buffer that is one byte too small. This classic off-by-one vulnerability allows the subsequent string copy operation to write the null terminator beyond the allocated buffer boundary, corrupting adjacent heap metadata or data.

Attack Vector

The attack vector is network-based, targeting the REST API endpoint exposed by NanoMQ. An attacker can exploit this vulnerability by:

  1. Identifying a network-accessible NanoMQ instance with REST API enabled
  2. Crafting an HTTP GET request with specially constructed query parameters
  3. Sending the malicious request to trigger the heap buffer overflow in uri_param_parse
  4. Causing service disruption through heap corruption

The patch addresses this issue by disabling the vulnerable /get_file endpoint:

c
 	    .method = "GET",
 	    .descr  = "show broker aws_bridge configuration",
 	},
-	{
-	    .path   = "/get_file",
-	    .name   = "get file content from path",
-	    .method = "GET",
-	    .descr  = "To get config file content",
-	},
+	// {
+	//     .path   = "/get_file",
+	//     .name   = "get file content from path",
+	//     .method = "GET",
+	//     .descr  = "To get config file content",
+	// },
 	{
 	    .path   = "/configuration/",
 	    .name   = "set_broker_configuration",

Source: GitHub Commit Changes

Detection Methods for CVE-2026-32135

Indicators of Compromise

  • Unexpected NanoMQ service crashes or restarts, particularly when REST API is actively used
  • Abnormal HTTP requests to NanoMQ REST API endpoints with unusually long or malformed query parameters
  • Heap corruption errors or segmentation faults in NanoMQ process logs
  • Unusual network traffic patterns targeting NanoMQ REST API ports

Detection Strategies

  • Monitor NanoMQ service stability and log files for unexpected crashes or memory-related errors
  • Implement network intrusion detection rules to identify malformed HTTP requests targeting NanoMQ REST API
  • Deploy application-level firewalls to inspect and filter requests to the /get_file endpoint and other REST API paths
  • Use memory sanitizers during testing to detect heap overflow conditions

Monitoring Recommendations

  • Enable verbose logging on NanoMQ instances to capture REST API request details
  • Set up alerting for NanoMQ process crashes or automatic restarts
  • Monitor system resources (memory usage, process state) for anomalies indicating exploitation attempts
  • Implement log aggregation to correlate potential attack patterns across multiple NanoMQ instances

How to Mitigate CVE-2026-32135

Immediate Actions Required

  • Upgrade NanoMQ to version 0.24.11 or later immediately
  • If immediate upgrade is not possible, restrict network access to the NanoMQ REST API using firewall rules
  • Disable REST API functionality if not required for operations
  • Implement network segmentation to limit exposure of NanoMQ instances

Patch Information

EMQ Technologies has released version 0.24.11 of NanoMQ which patches this vulnerability. The fix involves disabling the vulnerable /get_file endpoint that was susceptible to the heap buffer overflow. Organizations should update to this patched version as soon as possible.

For detailed patch information, refer to:

  • GitHub Commit Changes
  • GitHub Security Advisory GHSA-6w96-9qw7-m599

Workarounds

  • Disable the REST API feature entirely if not required by setting appropriate configuration options
  • Use firewall rules to restrict access to NanoMQ REST API ports from untrusted networks
  • Deploy a reverse proxy with request validation in front of NanoMQ to filter potentially malicious requests
  • Implement network access control lists (ACLs) to limit which hosts can communicate with NanoMQ REST API
bash
# Example: Restrict REST API access using iptables
iptables -A INPUT -p tcp --dport 8081 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8081 -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/TechNanomq

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Technical References
  • GitHub Issue #2247
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-6w96-9qw7-m599
  • Related CVEs
  • CVE-2026-34608: NanoMQ MQTT Broker Buffer Overflow Flaw

  • CVE-2026-21888: NanoMQ MQTT Broker Buffer Overflow Flaw

  • CVE-2026-32696: NanoMQ MQTT Broker DoS Vulnerability

  • CVE-2026-22040: NanoMQ MQTT Broker 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