Use-after-free in NanoMQ - CVE-2025-65953

 

Use-after-free in NanoMQ - CVE-2025-65953

Published: November 28, 2025


Vulnerability identifier: #VU118820
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-65953
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service attack.

The vulnerability exists due to a use-after-free error within the the TCP transport component of NanoMQ in src/sp/transport/mqtt/broker_tcp.c caused by premature cleanup of message and pipe structures. A remote attacker can send packets with specially crafted MQTTV5 properties to the application and perform a denial of service attack.



Affected software

NanoMQ

How to mitigate CVE-2025-65953

Install updates from vendor's website.

NanoMQ - update to 0.22.5

External References

Related Security Bulletins