BreachSpiderVerified, not vibes

CVE-2025-66023 in Emqx Nanomq

Medium 4.9

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Versions prior to 0.24.5 have a Heap-Use-After-Free (UAF) vulnerability within the MQTT bridge client component (implemented via the underlying NanoNNG library). The vulnerability is triggered when NanoMQ acts as a bridge connecting to a remote MQ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.14.9
CVSS v46.9
EPSS0.6%
EPSS percentile46th
FixUnknown

Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Emqx Nanomq < 0.24.5

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Versions prior to 0.24.5 have a Heap-Use-After-Free (UAF) vulnerability within the MQTT bridge client component (implemented via the underlying NanoNNG library). The vulnerability is triggered when NanoMQ acts as a bridge connecting to a remote MQTT broker. A malicious remote broker can trigger a crash (Denial of Service) or potential memory corruption by accepting the connection and immediately sending a malformed packet sequence. Version 0.34.5 contains a patch. The patch enforces stricter protocol adherence in the MQTT client SDK embedded in NanoMQ. Specifically, it ensures that CONNACK is always the first packet processed in the line. This prevents the state confusion that led to the Heap-Use-After-Free (UAF) when a malicious server sent a malformed packet sequence immediately after connection establishment. As a workaround, validate the remote broker before bridging.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-66023
BreachSpider IDBS-2026-GLOBAL-032497-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Published2026-01-01
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-416: Use After Free

Software references memory after it has been freed, leading to corruption, crashes, or code execution.

Analysis AI-written, not human-reviewed

NanoMQ MQTT Broker versions prior to 0.24.5 are vulnerable to a Heap-Use-After-Free (UAF) vulnerability in the MQTT bridge client component, which can be exploited by a malicious remote broker to cause a Denial of Service (DoS) or potentially execute arbitrary code.

The vulnerability occurs when NanoMQ acts as a bridge connecting to a remote MQTT broker. A malicious remote broker can send specially crafted packets that trigger the UAF condition, leading to a crash or potential code execution.

Questions

What is CVE-2025-66023?

NanoMQ MQTT Broker versions prior to 0.24.5 are vulnerable to a Heap-Use-After-Free (UAF) vulnerability in the MQTT bridge client component, which can be exploited by a malicious remote broker to cause a Denial of Service (DoS) or potentially execute arbitrary code.

What is the CVSS score for CVE-2025-66023?

CVE-2025-66023 has CVSS 4.9 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H. EPSS: 0.6%.

Is CVE-2025-66023 actively exploited?

No confirmed active exploitation of CVE-2025-66023 as of 2026-09-25.

How do I remediate CVE-2025-66023?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2025-66023?

CVE-2025-66023 affects Emqx Nanomq.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Emqx","product":"Nanomq","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.