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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (37th percentile)

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-10874220
  • published22 Jul 2025
  • disclosed26 Feb 2024
  • creditLuMingYinDetect

Introduced: 26 Feb 2024

CVE-2024-25767  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade nanomq/NanoNNG to version 0.21.8 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free due to improper handling of memory in the socket.c file. An attacker can execute arbitrary code or cause a denial of service by triggering a use-after-free condition.

References

CVSS Base Scores

version 3.1