CVE-2025-66023
mediumpriority · track · 20EPSS 0.004 · 31 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.6–6.9
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/nanomq/NanoNNG/pull/1365cnnvd
- https://github.com/nanomq/nanomq/issues/2145cnnvd
- https://github.com/nanomq/nanomq/releasesPatchcnnvd
- https://github.com/nanomq/nanomq/security/advisories/GHSA-24f7-q5hh-27hfcnnvd
- https://github.com/nanomq/NanoNNG/pull/1365enisa_euvd
- https://github.com/nanomq/nanomq/issues/2145enisa_euvd
- https://github.com/nanomq/nanomq/security/advisories/GHSA-24f7-q5hh-27hfenisa_euvd
- https://github.com/nanomq/NanoNNG/pull/1365Issue TrackingPatchnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan