Use After Free Affecting nanomq/NanoNNG package, versions [,0.24.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-NANOMQNANONNG-14123068
  • published27 Nov 2025
  • disclosed25 Nov 2025
  • creditUnknown

Introduced: 25 Nov 2025

NewCVE-2025-65953  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade nanomq/NanoNNG to version 0.24.3 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free via improper resource management in the broker_tcp.c process. An attacker can cause memory corruption or a denial of service by sending specially crafted, malformed MQTTV5 retain message traffic that triggers premature cleanup of message and pipe structures.

Note: The vulnerability was initially reported for nanomq/nanomq, which relies on nanomq/NanoNNG.

References

CVSS Base Scores

version 4.0
version 3.1