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.
{
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59947.json",
"cwe_ids": [
"CWE-120"
]
}{
"cpe": "cpe:2.3:a:emqx:nanomq:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "0.24.4"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}"2026-07-22T04:02:34Z"
[
{
"target": {
"file": "nanomq/pub_handler.c"
},
"id": "CVE-2025-59947-3145fcb6",
"digest": {
"line_hashes": [
"159276449562948289408653492199121318734",
"35724512018038343002349750495907905873",
"290894551290715766247836356710934074121",
"299333661722385677012160916330874323277"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/nanomq/nanomq/commit/5f5581054bb92f102cf99251e8af2f43763d457b"
},
{
"target": {
"function": "foreach_client",
"file": "nanomq/pub_handler.c"
},
"id": "CVE-2025-59947-3a4eec5c",
"digest": {
"function_hash": "117288112188248677177235021966280231024",
"length": 572.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/nanomq/nanomq/commit/5f5581054bb92f102cf99251e8af2f43763d457b"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59947.json"