CVE-2025-65953: NanoMQ UAF of retain message due to invalid MQTTV5 properties

Published Nov 25, 2025
·
Updated

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

1 affected component
nanomq nanomq<0.22.5

Event History

Nov 25, 2025
CVE Published
via MITRE·11:13 PM
Data Sourced
via MITRE·11:13 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203