CVE-2026-130491

Uninitialized heap disclosure in CONNECT through Will payload length truncation

Published Nov 18, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In Eclipse versions 1.5-1.6.13, 2.0.0-2.0.22 and 2.1.0-2.1.2, the client library libmosquitto does not reject Will messages with payloads greater than 65535 bytes when calling `mosquitto_will_set()` or `mosquitto_will_set_v5()`. This results in up to 65535 bytes of uninitialised heap memory being transmitted as the Will.



This can be mitigated by only passing payloads with a maximum length of 65535 bytes.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor‑issued patch that adds explicit length validation to mosquitto_will_set() and mosquitto_will_set_v5(), addressing weaknesses CWE‑200 and CWE‑908.
  • Integrate a runtime check in the client application to reject any Will payload larger than 65,535 bytes before calling the library functions, preventing accidental disclosure (CWE‑200).
  • Ensure that any buffer allocated for a Will payload is fully initialized before being sent, eliminating leaks of uninitialised data (CWE‑908).

Generated by OpenCVE AI on November 18, 2026 at 20:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Eclipse
Eclipse eclipse Mosquitto
Vendors & Products Eclipse
Eclipse eclipse Mosquitto
Type Values Removed Values Added
Description In Eclipse versions 1.5-1.6.13, 2.0.0-2.0.22 and 2.1.0-2.1.2, the client library libmosquitto does not reject Will messages with payloads greater than 65535 bytes when calling `mosquitto_will_set()` or `mosquitto_will_set_v5()`. This results in up to 65535 bytes of uninitialised heap memory being transmitted as the Will. This can be mitigated by only passing payloads with a maximum length of 65535 bytes.
Title Uninitialized heap disclosure in CONNECT through Will payload length truncation
Weaknesses CWE-200
CWE-908
References
Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
eclipse
Published
Updated
Nov 18, 2026, 10:11 AM
Reserved
Nov 17, 2026, 9:04 AM
Status
Received
Published
Nov 18, 2026, 10:16 AM
Modified
Nov 18, 2026, 11:17 AM