HackerFeeds
All CVEs

CVE-2026-110486: In Eclipse Mosquitto Integer Underflow

CRITICAL9.8

Published 2026-11-18 · Updated 2026-11-24 · Source emo@eclipse.org

Remotely exploitable without authentication — apply the vendor fix or mitigation as a priority.

What to do

  1. The advisory lists versions through 2.1.2 as affected and does not name a fixed release. Check the references below for a newer version of In Eclipse Mosquitto or a vendor mitigation.
  2. Until it is patched, do not leave In Eclipse Mosquitto reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Avoid processing untrusted input with the affected component until it is updated.

Affected and fixed versions

ProductAffectedFixed in
In Eclipse Mosquitto≤ 2.1.2Not stated in the advisory

Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.

How it can be exploited

It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on confidentiality, integrity and availability is rated high.

CVSS 3.1 metrics for CVE-2026-110486
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionNoneNo action by a victim is needed.
ConfidentialityHighTotal loss of confidentiality.
IntegrityHighTotal loss of integrity.
AvailabilityHighTotal loss of availability.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: Integer Underflow

A calculation wraps below its minimum value, often producing a huge length and then memory corruption.

Classified as CWE-191, CWE-787 (Out-of-bounds Write), CWE-908 (Use of Uninitialized Resource).

Description

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.

Advisory text as published in the NVD record.

View on NVD