Eclipse MosquittoにRCE脆弱性、2.1.3で修正
Summary
Eclipse Mosquitto 2.1.0〜2.1.2で、組み込みのWebSocketリスナーを使うブローカーに、認証前にヒープが壊れて停止し、条件次第でコード実行に至る脆弱性が見つかりました。該当するなら2.1.3に更新し、すぐ更新できなければWebSocketを無効にします。
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.
Eclipse Mosquitto 2.1.0〜2.1.2で、組み込みのWebSocketリスナーを使うブローカーに、認証前にヒープが壊れて停止し、条件次第でコード実行に至る脆弱性が見つかりました。該当するなら2.1.3に更新し、すぐ更新できなければWebSocketを無効にします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Eclipse FoundationEclipse Mosquitto |
2.1 – 2.1.2→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-110486 mosquitto No fixed version in this record
Original description The description as published by the source.
In Eclipse Mosquitto versions 2.1 through 2.1.2, a listener configured with protocol websockets mishandles empty WebSocket data frames. net__read_ws() in lib/net_ws.c returns the number of framing bytes consumed (the 4 masking-key bytes) for a data frame with a zero-length payload, without writing any bytes to the caller’s buffer. The MQTT packet reader in packet__read_single() (lib/packet_mosq.c) trusts that return value as a payload byte count. A remote client can therefore advance the read position over an uninitialised heap allocation, causing the broker to process and forward uninitialised heap memory (information disclosure, including heap and libc pointers), and can underflow the unsigned to_process counter so that subsequent attacker-controlled frame data is written past the end of the allocation (heap out-of-bounds write). The out-of-bounds write is reachable from the CONNECT packet before any authentication check, so an unauthenticated client can corrupt the heap and crash the broker even when allow_anonymous false is set. Combining the disclosure and the write allows remote code execution as the broker’s user by any client able to establish a session.
Source: oss-security (Openwall) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- OSS-SECURITY CVE-2026-110486: Eclipse Mosquitto: Remote code execution via websockets listeners
- web gitlab.eclipse.org
- web gitlab.eclipse.org
- web openwall.com