CVE-2025-59947CWE-120

CVE-2025-59947

Critical · published December 16, 2025

CVSS v3.1
9.0
EPSS
0%
Percentile
24.5
In the wild
Unconfirmed
What it is

⚡ A sneaky buffer overflow in NanoMQ could pop up anytime you send a PUBLISH packet! 🎉 If you're on a version prior to 0.24.4, you might be in hot water! Think of it like a crowded buffet where the chef keeps serving more food than the table can hold. Eventually, the excess food spills everywhere, causing a chaotic mess — just like how the buffer overflow can cause unexpected behavior in your application. If exploited, this vulnerability could lead to unexpected crashes or even arbitrary code execution. Imagine a scenario where an attacker sends malicious data, causing your messaging broker to behave erratically or crash, disrupting IoT operations in the process. This could be absolutely devastating for your edge devices!

Put simply

Think of it like a crowded buffet where the chef keeps serving more food than the table can hold. Eventually, the excess food spills everywhere, causing a chaotic mess — just like how the buffer overflow can cause unexpected behavior in your application. This buffer overflow vulnerability arises from how NanoMQ handles shared and vanilla subscriptions when processing PUBLISH packets. Attackers could exploit this by sending specially crafted packets, potentially leading to damage in the system or unauthorized access.

What to do

If exploited, this vulnerability could lead to unexpected crashes or even arbitrary code execution. Imagine a scenario where an attacker sends malicious data, causing your messaging broker to behave erratically or crash, disrupting IoT operations in the process. This could be absolutely devastating for your edge devices! To remediate this vulnerability, update your NanoMQ to version 0.24.4 or later. As a temporary workaround, ensure that shared subscriptions are disabled until you've completed the upgrade. Don't delay on this! You've got this! Follow these steps to keep your IoT messaging secure and your operations running smoothly. 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00326 · 24.5th percentile
Weakness
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Published
2025-12-16T02:15Z
Affected products (1)
ProductVersionsFixed in
emqx/nanomq< 0.24.40.24.4
References (3)
EPSS history
Timeline
  • 15 DEC 20:19Z
    NanoMQ has Buffer Overflow
    cvelistv5