CVE-2024-25767: nanomq 0.21.2 contains a Use-After-Free
Affects nanomqSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium.
Data as of 26 Oct 2026, 13:47 UTC
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 26 Feb 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
GitHublumingyindetect/nanomqpkg:github/lumingyindetect/nanomqOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Restrict network access to nanomq services by implementing firewall rules or network segmentation to limit exposure to untrusted networks.
- Monitor nanomq instances for abnormal crashes or instability that may indicate exploitation attempts.
- Apply principle of least privilege to accounts and services interacting with nanomq to reduce attack surface.
- Stay informed on vendor advisories and apply official patches or updates promptly once released.
- Consider deploying runtime application self-protection (RASP) or memory safety tools that can detect or prevent use-after-free conditions.
- Conduct thorough code review and testing if custom modifications to nanomq are in use, to identify and remediate similar memory management issues.
- Implement robust logging and alerting mechanisms to detect unusual network traffic patterns targeting nanomq services.
- 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.