CVE-2025-59947 NanoMQ has Buffer Overflow
A buffer overflow in NanoMQ allows attackers to execute arbitrary code or cause denial of service via crafted PUBLISH packets.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-59947?
CVE-2025-59947 is a high-severity memory corruption vulnerability in nanomq, published on 15 Dec 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-120
Which versions are affected by CVE-2025-59947?
It affects 1 product.
Products include Emqx Nanomq.
How do I fix CVE-2025-59947?
No fix has been published for CVE-2025-59947 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-59947 being exploited?
There is no known exploitation of CVE-2025-59947 in the wild and no public exploit code.
Other vulnerabilities in nanomq
Sources
Also known as GHSA-98f4-cmg8-x7f3.