Skip to main content

Nanomq EUVDEUVD-2026-23939

| CVE-2026-32135 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-04-20 GitHub_M
7.7
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify NanoMQ REST API endpoint
  2. Delivery
    Craft HTTP request with oversized query parameters
  3. Exploit
    Trigger off-by-one overflow in uri_param_parse
  4. Execution
    Corrupt heap metadata
  5. Impact
    Crash broker process (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the NanoMQ REST API feature to be enabled and network-accessible to the attacker. The REST API is a standard component of NanoMQ but may not be exposed in all deployments depending on firewall rules, network segmentation, or configuration choices to disable HTTP management interfaces. No authentication is required (CVSS PR:N) and default configurations with REST API enabled are vulnerable. No user interaction needed (UI:N). Exploitation is NOT limited by specific MQTT protocol configurations, client connections, or broker clustering modes - any NanoMQ instance with reachable REST API endpoints on TCP ports (typically 8081 or 18083) can be targeted. Attack complexity is low (AC:L) as crafting the malicious query parameter requires only basic HTTP client tools and knowledge of the parser flaw.

Impact

Real-world risk is moderate-high for internet-exposed NanoMQ deployments despite the 7.7 CVSS score. The CVSS vector confirms worst-case network exploitability: AV:N (network accessible), AC:L (low complexity), PR:N (no authentication), UI:N (no user interaction). However, the impact is limited to availability (VA:H) with no confidentiality or integrity compromise in the base metric. The E:P (Proof-of-concept) indicator confirms exploit code exists, lowering the skill barrier for attackers. Absence from CISA KEV suggests this is not yet widely exploited in the wild, likely due to NanoMQ's niche deployment in edge/IoT environments rather than enterprise infrastructure. The primary risk is denial of service against MQTT messaging infrastructure, which could disrupt IoT device communications, industrial sensors, or edge data pipelines. Organizations using NanoMQ in production edge deployments face higher risk than those in development/testing. The availability of a clean vendor patch (0.24.11) and specific commit reference (69a97b3) indicates straightforward remediation, reducing residual risk for patched systems. Attack automation is feasible given the low complexity and documented POC, making this a realistic target for vulnerability scanners and opportunistic attacks against exposed REST API endpoints.

Exploit ScenarioDerived

An attacker identifies an internet-exposed NanoMQ broker instance through port scanning or IoT device reconnaissance (common on ports 8081/18083 for REST API). They craft an HTTP GET or POST request to any REST API endpoint with maliciously formatted query parameters containing precise byte sequences to trigger the off-by-one overflow in uri_param_parse. The null byte write corrupts heap metadata, causing NanoMQ to crash and disrupting MQTT messaging services for connected IoT devices or edge applications. With proof-of-concept code publicly available, attackers can automate this attack against vulnerable targets without deep exploit development expertise.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 20, 2026

Heap buffer overflow in NanoMQ MQTT Broker's REST API allows remote unauthenticated attackers to trigger denial of service via crafted HTTP requests. The off-by-one error in uri_param_parse function (CWE-122) affects all versions prior to 0.24.11. CVSS 7.7 (High) with network attack vector, low complexity, and no authentication required. Proof-of-concept exploit exists (CVSS E:P), though no CISA KEV listing indicates limited observed exploitation. Vendor patch available in version 0.24.11 with upstream fix committed (GitHub 69a97b3).

RemediationAI

Upgrade NanoMQ MQTT Broker to version 0.24.11 or later, which contains the vendor-released patch addressing the off-by-one heap overflow (commit 69a97b3b39cc218f044f1c8896f4d3d8757bb394 available at https://github.com/nanomq/nanomq/commit/69a97b3b39cc218f044f1c8896f4d3d8757bb394). For systems unable to immediately upgrade, implement network-level access controls to restrict REST API exposure: bind the REST API to localhost/management networks only, deploy reverse proxy with request filtering to block malformed query parameters, or disable the REST API entirely if not operationally required (trade-off: loss of HTTP-based management/monitoring capabilities). Apply rate limiting and connection throttling on REST API endpoints to mitigate denial-of-service impact if exploitation occurs. Monitor NanoMQ process crashes and HTTP 5xx errors as potential indicators of exploitation attempts. Full remediation details in GitHub advisory GHSA-6w96-9qw7-m599.

Affected VersionsENISA

nanomq < 0.24.11

Affected Packages

euvd nanomq fix: 0.24.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NanoMQ is a lightweight MQTT broker designed for edge computing environments, providing messaging infrastructure with REST API endpoints. The vulnerability resides in the uri_param_parse function responsible for parsing HTTP query parameters in the REST API component. The root cause is an off-by-one error (CWE-122: Heap-based Buffer Overflow) during memory allocation for query parameter keys and values. When processing HTTP requests, the parser allocates a buffer but fails to account for the null terminator byte, allowing a single null byte write beyond the allocated heap memory boundary. This classic off-by-one vulnerability can corrupt adjacent heap metadata or data structures, potentially causing application crashes. The affected CPE (cpe:2.3:a:nanomq:nanomq) confirms impact across the NanoMQ product line, with the REST API being the attack surface exposed to network requests.

Know when Nanomq gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.7 HIGH
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

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch released
Apr 22, 2026 - 17:32 nvd
Patch available
Patch available
Apr 20, 2026 - 20:01 EUVD
CVE Published
Apr 20, 2026 - 19:23 nvd
HIGH 7.7

DescriptionGitHub Advisory

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Versions prior to 0.24.11 have a remotely triggerable heap buffer overflow in the uri_param_parse function of NanoMQ's REST API. The vulnerability occurs due to an off-by-one error when allocating memory for query parameter keys and values, allowing an attacker to write a null byte beyond the allocated buffer. This can be triggered via a crafted HTTP request. Version 0.24.11 patches the issue.

Executive ViewAI

Why It Matters

NanoMQ MQTT Broker versions prior to 0.24.11 contain a remotely exploitable heap buffer overflow in the REST API that allows unauthenticated attackers to cause denial of service. Organizations relying on NanoMQ for IoT or MQTT infrastructure face immediate risk of service disruption without patching, potentially affecting operational technology systems and connected devices that depend on message brokering.

Business Impact: High
Compensating Controls

Apply vendor patch (version 0.24.11 or later). If immediate patching is not possible: restrict network access to NanoMQ REST API endpoints using firewall rules or network segmentation to limit exposure to trusted internal networks only; implement rate limiting and request validation at API gateway or proxy layer; monitor for suspicious HTTP requests targeting uri_param_parse endpoints.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

More in Nanomq

View all
CVE-2023-34488 HIGH POC
7.8 Jun 12

NanoMQ 0.17.5 has a one-byte heap-based buffer over-read in the conn_handler function of mqtt_parser.c when it processes

CVE-2024-42646 HIGH POC
7.5 Jul 14

CVE-2024-42646 is a segmentation fault vulnerability in NanoMQ v0.21.10 that allows unauthenticated remote attackers to

CVE-2025-59946 HIGH POC
7.5 Dec 27

A data race in NanoMQ MQTT Broker versions prior to 0.24.2 can free subscription-info list memory while another thread s

CVE-2024-31041 HIGH POC
7.5 Apr 17

Null Pointer Dereference vulnerability in topic_filtern function in mqtt_parser.c in NanoMQ 0.21.7 allows attackers to c

CVE-2023-33657 HIGH POC
7.5 Jun 08

A use-after-free vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remotely e

CVE-2023-33660 HIGH POC
7.5 Jun 08

A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo

CVE-2023-33658 HIGH POC
7.5 Jun 08

A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo

CVE-2023-33659 HIGH POC
7.5 Jun 06

A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo

CVE-2023-29996 HIGH POC
7.5 May 04

In NanoMQ v0.15.0-0, segment fault with Null Pointer Dereference occurs in the process of decoding subinfo_decode and un

CVE-2023-29995 HIGH POC
7.5 May 04

In NanoMQ v0.15.0-0, a Heap overflow occurs in copyn_utf8_str function of mqtt_parser.c. Rated high severity (CVSS 7.5),

CVE-2023-29994 HIGH POC
7.5 May 04

In NanoMQ v0.15.0-0, Heap overflow occurs in read_byte function of mqtt_code.c. Rated high severity (CVSS 7.5), this vul

CVE-2024-31036 MEDIUM POC
6.8 Apr 22

A heap-buffer-overflow vulnerability in the read_byte function in NanoMQ v.0.21.7 allows attackers to cause a denial of

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy