Skip to main content
VulnerabilityPublished Updated

CVE-2024-25767: nanomq 0.21.2 contains a Use-After-Free

Affects nanomqSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 26 Oct 2026, 13:47 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Feb 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHublumingyindetect/nanomqpkg:github/lumingyindetect/nanomqOther threatsAffected
  • =0.21.2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Restrict network access to nanomq services by implementing firewall rules or network segmentation to limit exposure to untrusted networks.
  2. Monitor nanomq instances for abnormal crashes or instability that may indicate exploitation attempts.
  3. Apply principle of least privilege to accounts and services interacting with nanomq to reduce attack surface.
  4. Stay informed on vendor advisories and apply official patches or updates promptly once released.
  5. Consider deploying runtime application self-protection (RASP) or memory safety tools that can detect or prevent use-after-free conditions.
  6. Conduct thorough code review and testing if custom modifications to nanomq are in use, to identify and remediate similar memory management issues.
  7. Implement robust logging and alerting mechanisms to detect unusual network traffic patterns targeting nanomq services.
  8. For critical environments, consider temporary mitigation by disabling or isolating vulnerable nanomq instances until patches are available.

Description

nanomq 0.21.2 contains a Use-After-Free vulnerability in /nanomq/nng/src/core/socket.c.

References

Community reviews

Loading reviews…