
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-66023 is a Heap-Use-After-Free (UAF) vulnerability in the MQTT bridge client component of NanoMQ MQTT Broker, affecting all versions prior to 0.24.5. The flaw resides in the underlying NanoNNG library and is triggered when NanoMQ acts as a bridge client connecting to a remote MQTT broker. It was discovered by researcher lucajungnickel, reported on October 14, 2025, and publicly disclosed on January 1, 2026. The vulnerability carries a CVSS v3.1 base score of 4.9 (Medium) and a CVSS v4.0 base score of 6.9 (Medium) (GitHub Advisory).
The root cause is a Use After Free condition (CWE-416) in the MQTT client SDK embedded within NanoMQ's NanoNNG library. When NanoMQ initiates a bridge connection to a remote broker, the client SDK does not enforce that CONNACK is the first packet received; a malicious broker can accept the connection and immediately send a malformed (non-CONNACK) packet sequence, causing state confusion that results in access to already-freed heap memory. Exploitation requires the attacker to control or compromise a remote MQTT broker that a NanoMQ instance is configured to bridge to, meaning the attacker must have high privileges (i.e., operate the remote broker endpoint). The fix, merged in NanoNNG PR #1365 on October 14, 2025, enforces that CONNACK is always the first packet processed in the connection handshake (GitHub Advisory, NanoNNG PR).
Successful exploitation causes the NanoMQ broker process to crash (Denial of Service) or potentially results in memory corruption, which could theoretically be leveraged for further exploitation. There is no confidentiality or integrity impact identified — the primary risk is availability loss of the edge messaging platform. In IoT or industrial deployments where NanoMQ serves as a critical edge messaging bridge, a crash could disrupt data pipelines and downstream systems relying on MQTT message delivery (GitHub Advisory, Feedly).
No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.036%, reflecting a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is constrained by the requirement that the attacker must control a remote MQTT broker that the target NanoMQ instance is configured to bridge to, significantly limiting the attack surface (GitHub Advisory, Feedly).
nanomq process, particularly correlated with bridge connection events to external brokers.Upgrade NanoMQ to version 0.24.5 or later, which includes the fix from NanoNNG PR #1365 enforcing CONNACK-first packet ordering in the MQTT client SDK. As an interim workaround, validate and restrict remote brokers that NanoMQ bridges to — only allow connections to trusted, verified broker endpoints. Additionally, implement network-level controls (e.g., firewall rules or allowlists) to restrict which external broker addresses NanoMQ instances can connect to, reducing exposure to attacker-controlled brokers (GitHub Advisory, NanoNNG PR).
The vulnerability was credited to researcher lucajungnickel and disclosed via GitHub Security Advisories by NanoMQ maintainer JaylinYu on January 1, 2026. Red Hat tracked the CVE through their security advisory system. No significant broader media coverage or notable community debate has been identified beyond standard vulnerability tracking platforms (GitHub Advisory, Red Hat).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."