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

 

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

Published: April 24, 2026


Vulnerability identifier: #VU127586
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-59946
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: NanoMQ
Affected software:
NanoMQ

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to use-after-free in the sub info list when processing concurrent subscribe and unsubscribe operations. A remote user can trigger a race condition to execute arbitrary code.

Exploitation requires hitting a specific overlapping race window.


How to mitigate CVE-2025-59946

Install security update from vendor's website.

Sources