Technical impact
A flaw in the Eclipse Mosquitto client library prevents validation of Will messages whose payloads exceed 65535 bytes. When a larger payload is accepted by the functions mosquitto_will_set() or mosquitto_will_set_v5(), the resulting message contains up to 65535 bytes of uninitialised heap memory. This uninitialised data is transmitted to all subscribers who receive the Will when the client disconnects, potentially revealing confidential information that resides in the broker's memory.
Affected Systems
The vulnerability affects the Eclipse Mosquitto client library (libmosquitto) bundled with Eclipse Mosquitto broker versions 1.5 through 1.6.13, 2.0.0 through 2.0.22, and 2.1.0 through 2.1.2. All installations that use these versions and allow arbitrary Will payloads without size restriction are susceptible.
Risk and Exploitability
An attacker can trigger the disclosure by connecting a client that sets a Will with a payload larger than 65535 bytes. The broker then sends the corrupted message to subscribers upon the client's disconnection, leaking up to 65535 bytes of memory content. The EPSS score is unavailable and the vulnerability is not listed in the CISA KEV catalog, indicating no widespread exploitation is documented yet. While a CVSS score is not provided, the possibility of leaking sensitive data in a managed MQTT infrastructure justifies treating this as a significant information‑disclosure risk, particularly when clients can be controlled by external parties.