CVE-2025-65953
JSON

6.0medium

NanoMQ UAF of retain message due to invalid MQTTV5 properties

Severity
6.0medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Prior to version 0.22.5, a Heap-Use-After-Free (UAF) vulnerability exists in the TCP transport component of NanoMQ, which relies on the underlying NanoNNG library (specifically in src/sp/transport/mqtt/broker_tcp.c). The vulnerability is due to improper resource management and premature cleanup of message and pipe structures under specific malformed MQTTV5 retain message traffic conditions. This issue has been patched in version 0.22.5.

Affected

Product or packageVersionsReported by
nanomq nanomq< 0.22.5CVE List

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Prior to version 0.22.5, a Heap-Use-After-Free (UAF) vulnerability exists in the TCP transport component of NanoMQ, which relies on the underlying NanoNNG library (specifically in src/sp/transport/mqtt/broker_tcp.c). The vulnerability is due to improper resource management and premature cleanup of message and pipe structures under specific malformed MQTTV5 retain message traffic conditions. This issue has been patched in version 0.22.5.

NVD (es)

NanoMQ MQTT Broker (NanoMQ) es una plataforma de mensajería Edge integral. En versiones anteriores a la versión 0.22.5, existe una vulnerabilidad de uso después de liberación (UAF) en el heap en el componente de transporte TCP de NanoMQ, que se basa en la biblioteca subyacente NanoNNG (específicamente en src/sp/transport/mqtt/broker_tcp.c). La vulnerabilidad se debe a una gestión inadecuada de recursos y a una limpieza prematura de las estructuras de mensajes y tuberías bajo condiciones específicas de tráfico de mensajes MQTTV5 retain malformados. Este problema ha sido parcheado en la versión 0.22.5.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-65953 changed 2025-11-26CVE Terms of Use
NVDCVE-2025-65953 changed 2026-10-19Public domain