Skip to content
High 7.5

Aedesに細工したトピックで、MQTTブローカーが停止させられる脆弱性

CVE-2026-63341 First seen on SecPulse

Summary

Aedesは、MQTTブローカーを作るためのNode.js向けライブラリです。1.1.1より前のバージョンでは、階層の深すぎるトピックを含むPUBLISHやSUBSCRIBEを送られると、処理中の例外が捕捉されずブローカー全体が停止し、再起動するまで接続できなくなります。修正版の1.1.1で対応しているため、速やかに更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Aedesは、MQTTブローカーを作るためのNode.js向けライブラリです。1.1.1より前のバージョンでは、階層の深すぎるトピックを含むPUBLISHやSUBSCRIBEを送られると、処理中の例外が捕捉されずブローカー全体が停止し、再起動するまで接続できなくなります。修正版の1.1.1で対応しているため、速やかに更新してください。

Affected packages

PackageAffected → Fixed
moscajsaedes —
npmaedes
< 1.1.1→ 1.1.1
Original description The description as published by the source.

Summary

A remote Denial of Service (DoS) vulnerability, allows any remote client to cause a complete crash of the Aedes MQTT broker process. This is achieved by sending a specially crafted MQTT message (via PUBLISH or SUBSCRIBE), or by setting a Will message with such a topic, containing a highly recursive topic string (e.g., with thousands of '/' delimiters). The lack of input validation and error handling leads to an uncaught exception in an internal routing library, terminating the entire Node.js application.

Details

The Aedes broker fails to enforce limits on the depth or structural complexity of MQTT topic strings. When a client publishes to or subscribes to a topic with excessive levels of recursion, the internal routing logic cascading into the qlobber library (via mqemitter) reaches an hard-coded limit within the qlobber._split_words function.

This function throws a hard Error: too many words (found in lib/qlobber.js:604). Crucially, Aedes does not wrap the calls to these internal modules (such as in handlers/subscribe.js or the publishing logic) in try-catch blocks. Consequently, this exception propagates up to the main Node.js event loop as an unhandled exception, causing the entire broker process to crash immediately.

This vulnerability affects all stable versions of Aedes due to the underlying dependency behavior and missing perimetral validation.

Stack Trace from Crash:

aedes-broker  | /app/node_modules/mqemitter/node_modules/qlobber/lib/…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details