NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. In version 0.24.6, NanoMQ has a protocol parsing / forwarding inconsistency when handling shared subscriptions ($share/). A malformed SUBSCRIBE topic such as $share/ab (missing the second /) is not strictly validated during the subscription stage, so the invalid Topic Filter is stored into the subscription table. Later, when any PUBLISH matches this subscription, the broker send path (nmq_pipe_send_start_v4/v5) performs a second $share/ parsing using strchr() and increments the returned pointer without NULL checks. If the second strchr() returns NULL, sub_topic++ turns the pointer into an invalid address (e.g. 0x1). This invalid pointer is then passed into topic_filtern(), which triggers strlen() and crashes with SIGSEGV. The crash is stable and remotely triggerable. This issue has been patched in version 0.24.7.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-476"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68699.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68699.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "310497582721063528643753849206017306310",
"length": 3400
},
"id": "CVE-2025-68699-65738b67",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/nanomq/nanomq/commit/89d68d678e7f841ae7baa45cba8d9bc7ddc9ef4b",
"target": {
"file": "nanomq/sub_handler.c",
"function": "decode_sub_msg"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"148264463702639014445328608625644980351",
"117947634385951628594612798951377727625",
"41346191352829948806448050848932223453",
"229002528819622269653400236844159766664",
"285738955883243541372447950489972748231",
"153811760593078631432581308123868832465",
"136285553792020661809863699701129605377",
"174054833792398501351385306226073447586"
],
"threshold": 0.9
},
"id": "CVE-2025-68699-fe3008e0",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/nanomq/nanomq/commit/89d68d678e7f841ae7baa45cba8d9bc7ddc9ef4b",
"target": {
"file": "nanomq/sub_handler.c"
}
}
]
"2026-08-12T15:14:53Z"