Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

CVE-2026-110486: Mosquitto 2.1‑2.1.2 allows remote code execution

CVE-2026-110486 · published 1 day ago
Summary

Versions 2.1 through 2.1.2 of the Mosquitto MQTT broker mishandle empty WebSocket messages, letting an unauthenticated client read memory it shouldn’t and write past the end of its memory. This can expose internal data and let an attacker take control of the broker process. Update to a newer Mosquitto release or disable WebSocket listeners until patched.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
– eclipse foundation eclipse mosquitto <= 2.1.2
Ubuntu:Pro:14.04:LTS canonical mosquitto All versions
Alpaquita:stream bellsoft mosquitto >= 2.0.15-r3
Original advisory text
BELL-CVE-2026-110486
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
9.8 Critical
Exploitation
1% chance of attack within 30 days
Type
CWE-787Out-of-bounds Write
CWE-908Use of Uninitialized Resource
CWE-191Integer Underflow (Wrap or Wraparound)
Timeline
Published20 Nov 2026
Updated21 Nov 2026
First seen18 Nov 2026
Track software like this
Free during beta