CVE-2025-65953 - CVE House
Back to Database
Status published Medium CVE-2025-65953

NanoMQ UAF of retain message due to invalid MQTTV5 properties

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-65953

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

nanomq
Vulnerable Versions:
< 0.22.5

Timeline

Official Publish: November 25th, 2025
Last Modified: November 26th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

Weaknesses (CWE)