Skip to main content

Nanomq CVE-2026-25627

| EUVDEUVD-2026-17195 MEDIUM
Out-of-bounds Read (CWE-125)
2026-03-30 GitHub_M
6.5
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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

Impact

This vulnerability carries a CVSS 3.1 score of 6.5 with vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating network-accessible remote denial of service requiring authenticated access with low attack complexity. The CVSS impact assessment confirms no confidentiality or integrity impact, only availability damage (high severity for DoS). The attack vector is network-based with no user interaction required, and attack complexity is low, making exploitation straightforward once authentication is obtained. The requirement for PR:L (low privilege level) reduces immediate risk for publicly exposed brokers but elevates concern for multi-tenant or internal deployments where users have basic access. The denial of service impact is significant in edge messaging scenarios where NanoMQ may be critical infrastructure; a remotely triggered crash could disrupt IoT device communication pipelines. The vulnerability affects widespread versions (all prior to 0.24.8), suggesting meaningful exposure across deployed instances. Compared to remote code execution vulnerabilities, the impact is contained to availability, but DoS remains a legitimate operational threat depending on deployment criticality.

Exploit ScenarioDerived

An authenticated attacker connected to a NanoMQ broker's WebSocket listener constructs a malformed MQTT CONNECT or other control packet where the Remaining Length field in the fixed header specifies an artificially large value (e.g., 65535 bytes) while the actual WebSocket frame payload contains significantly fewer bytes. When the broker's WebSocket handler attempts to copy the number of bytes indicated by Remaining Length into its buffer without bounds validation, it reads beyond the available data, triggering an out-of-bounds memory access that crashes the broker process. Repeated exploitation causes repeated denial of service until the broker is manually restarted, disrupting MQTT message routing for all connected clients in that cluster.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 30, 2026

NanoMQ MQTT Broker versions prior to 0.24.8 can be remotely crashed via MQTT-over-WebSocket by sending a packet with a maliciously inflated Remaining Length field in the fixed header while providing a shorter actual payload, triggering an out-of-bounds read that causes denial of service. Authenticated attackers can exploit this condition over the WebSocket listener with low attack complexity. Vendor-released patch available in version 0.24.8.

RemediationAI

Vendor-released patch available: Upgrade NanoMQ to version 0.24.8 or later immediately. The underlying fix was merged via upstream commit e80b30bad6d855593a68d18f2785bfaca6faf09e (https://github.com/nanomq/NanoNNG/commit/e80b30bad6d855593a68d18f2785bfaca6faf09e) and is also available in pull request PR/1405 (https://github.com/nanomq/NanoNNG/pull/1405). During the patching window, operators should restrict access to the MQTT-over-WebSocket listener to trusted networks if possible, implement network-level rate limiting on WebSocket connections to mitigate rapid repeated exploitation attempts, and monitor broker logs for unexpected crashes or ASAN reports. Organizations unable to immediately upgrade should prioritize patching given the remote accessibility and low complexity of exploitation.

Affected VersionsENISA

nanomq < 0.24.8

Affected Packages

euvd nanomq fix: 0.24.8

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

The vulnerability exists in NanoMQ's MQTT-over-WebSocket transport layer implementation. MQTT packets include a Remaining Length field in the fixed header that indicates the size of the variable header and payload. The affected code path attempts to copy the number of bytes specified by Remaining Length directly from the receive buffer without first validating that sufficient bytes are actually present in the current buffer state. This results in CWE-125 (Out-of-bounds Read), where the memory access operation reads beyond allocated buffer boundaries. The MQTT protocol uses variable-length encoding for the Remaining Length field, but improper bounds checking during buffer consumption in the WebSocket handler allows an attacker to craft a malformed packet that causes ASAN (AddressSanitizer) to detect and report the out-of-bounds condition, leading to broker crash. The CPE cpe:2.3:a:nanomq:nanomq:*:*:*:*:*:*:*:* indicates all NanoMQ versions are affected up to and excluding 0.24.8.

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 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

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

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Apr 16, 2026 - 05:29 EUVD
0.24.8
CVE Published
Mar 30, 2026 - 20:11 nvd
MEDIUM 6.5

DescriptionGitHub Advisory

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Prior to version 0.24.8, NanoMQ’s MQTT-over-WebSocket transport can be crashed by sending an MQTT packet with a deliberately large Remaining Length in the fixed header while providing a much shorter actual payload. The code path copies Remaining Length bytes without verifying that the current receive buffer contains that many bytes, resulting in an out-of-bounds read (ASAN reports OOB / crash). This is remotely triggerable over the WebSocket listener. This issue has been patched in version 0.24.8.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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