{"id":"CVE-2025-59947","summary":"NanoMQ has Buffer Overflow","details":"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.","aliases":["GHSA-98f4-cmg8-x7f3"],"modified":"2026-08-12T15:14:13.617490Z","published":"2025-12-15T20:19:17.212Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-120"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59947.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59947.json"},{"type":"ADVISORY","url":"https://github.com/nanomq/nanomq/security/advisories/GHSA-98f4-cmg8-x7f3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59947"},{"type":"REPORT","url":"https://github.com/nanomq/nanomq/issues/2110"},{"type":"FIX","url":"https://github.com/nanomq/nanomq/commit/5f5581054bb92f102cf99251e8af2f43763d457b"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nanomq/nanomq","events":[{"introduced":"0"},{"fixed":"cc7f6ed73729564a37f36c5534f15517ea04d3b3"},{"fixed":"5f5581054bb92f102cf99251e8af2f43763d457b"}],"database_specific":{"cpe":"cpe:2.3:a:emqx:nanomq:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"0.24.4"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["0.24.3-5","0.24.3","0.24.2","0.24.1","0.24.0","0.23.10","0.23.9","0.23.8","0.23.7-11","0.23.7","0.23.6","0.23.5","0.23.4","0.23.3","0.23.2","0.23.1","0.23.0","0.22.10","0.22.8","0.22.7","0.22.6","0.22.2","0.22.3","0.22.1","0.22.0","0.21.10","0.21.9","0.21.8","0.21.7","0.21.6","0.21.5","0.21.2","0.21.1","0.21","0.20.8","0.20.6","0.20.5","0.20.0","0.19.5","0.19.1","0.19.0","0.18.2","0.18.1","0.17.8","0.17.5","0.17.2","0.16.5","0.16.3","0.16.2","0.16.0","0.15.5","0.15.3","0.15.2","0.15.1","0.15.0","0.14.8","0.14.5","0.12.1","0.14.1","0.14.0","0.13.8","0.13.6","0.13.0","0.12.5","0.12.2","0.12.0","0.11.82","0.11.8","0.11.5","0.11.3","0.11.2","0.11.0","0.10.8","0.10.5","0.10.1","0.9.7","0.9.5","0.9.2","0.9.0","0.8.6log","0.8.5","0.8.3","0.8.0","0.7.9","0.7.8","0.7.5","0.7.5rc","0.7.4rc","0.7.4","0.7.3","0.7.2","0.6.8","0.7.0","0.6.7rc","0.6.4","0.6.3","0.6.2","0.6.0","0.5.9","0.5.8","0.5.5","0.5.2","0.5.0","0.4.8","0.4.5","0.4.3","0.4.2","0.4.1","0.4.0","0.3.8","0.3.5","0.3.4","0.3.3","0.3.2","0.3.0","0.2.5","0.2.2","0.2.1","0.2.0","0.1.0","0.0.3","0.0.2","0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59947.json","vanir_signatures_modified":"2026-08-12T15:14:13Z","vanir_signatures":[{"source":"https://github.com/nanomq/nanomq/commit/5f5581054bb92f102cf99251e8af2f43763d457b","target":{"file":"nanomq/pub_handler.c"},"deprecated":false,"digest":{"line_hashes":["159276449562948289408653492199121318734","35724512018038343002349750495907905873","290894551290715766247836356710934074121","299333661722385677012160916330874323277"],"threshold":0.9},"id":"CVE-2025-59947-3145fcb6","signature_type":"Line","signature_version":"v1"},{"id":"CVE-2025-59947-3a4eec5c","signature_type":"Function","signature_version":"v1","source":"https://github.com/nanomq/nanomq/commit/5f5581054bb92f102cf99251e8af2f43763d457b","target":{"file":"nanomq/pub_handler.c","function":"foreach_client"},"deprecated":false,"digest":{"function_hash":"117288112188248677177235021966280231024","length":572}}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}