amqttに遠隔からサービス拒否される脆弱性、QoS 2のメモリ解放漏れ
概要
amqttには、QoS 2の通信が途中で切断されると確保したメモリが解放されず、メモリを使い果たしてブローカーが停止するおそれのある脆弱性があります。影響を受けるのはPyPI版の0.11.0以上0.12.1未満で、0.12.1で修正されています。0.12.1以上へのアップデートをおすすめします。攻撃は接続と切断を繰り返すだけで行えるため、利用しているなら早めに対応を検討してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
amqttには、QoS 2の通信が途中で切断されると確保したメモリが解放されず、メモリを使い果たしてブローカーが停止するおそれのある脆弱性があります。影響を受けるのはPyPI版の0.11.0以上0.12.1未満で、0.12.1で修正されています。0.12.1以上へのアップデートをおすすめします。攻撃は接続と切断を繰り返すだけで行えるため、利用しているなら早めに対応を検討してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Yakifoamqtt | — | 記載なし |
| PyPIamqtt |
0.11.0 以上 0.12.1 未満→ 0.12.1 |
0.12.1 |
| pipamqtt |
0.12.1 未満→ 0.12.1 |
0.12.1 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Debian DEBIAN-CVE-2026-130176 amqtt 修正版あり
- Ubuntu UBUNTU-CVE-2026-130176 amqtt この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Impact
amqtt is vulnerable to a remote denial of service caused by incomplete MQTT QoS 2 transactions remaining allocated after the associated client disconnects.
MQTT QoS 2 uses a four-step handshake to provide exactly-once delivery. If a client begins a QoS 2 transaction but disconnects before the handshake completes, amqtt retains the associated transaction state and packet identifier without an expiration mechanism to remove it.
QoS 1 transactions are protected by a timeout mechanism, which defaults to 5 seconds, allowing abandoned state to be released. Equivalent timeout handling was not applied to incomplete QoS 2 transactions.
An attacker can repeatedly connect to the broker, initiate QoS 2 transactions, and disconnect before completing the handshake. Each incomplete transaction leaves state allocated in memory. Repeating this process causes broker memory consumption to grow continuously.
Successful exploitation can cause:
- Unbounded growth in broker memory usage
- Accumulation of incomplete QoS 2 transaction state
- Increasing memory pressure on the host system
- Termination of the broker process when available memory is exhausted
- Operating-system Out-Of-Memory (OOM) intervention
- Complete loss of availability for the affected broker process
Exploitation does not require maintaining long-lived connections. An attacker can create incomplete QoS 2 transactions and disconnect, leaving the broker to retain the associated state after the network connecti…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com