CVE-2025-65953: NanoMQ UAF of retain message due to invalid MQTTV5 properties
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/brokertcp.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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-65953?
CVE-2025-65953 has a high severity rating due to the potential for a Heap-Use-After-Free vulnerability that can lead to remote code execution.
How do I fix CVE-2025-65953?
To fix CVE-2025-65953, upgrade NanoMQ to version 0.22.5 or later, which addresses the vulnerability.
What is the nature of the vulnerability in CVE-2025-65953?
CVE-2025-65953 is a Heap-Use-After-Free vulnerability affecting the TCP transport component of NanoMQ.
What versions of NanoMQ are affected by CVE-2025-65953?
All versions of NanoMQ prior to 0.22.5 are affected by CVE-2025-65953.
Can CVE-2025-65953 lead to data breaches?
Yes, CVE-2025-65953 can potentially lead to unauthorized access and data breaches due to its remote code execution capabilities.