---
id: CVE-2026-130491
title: >-
  Uninitialized heap disclosure in CONNECT through Will payload length
  truncation
summary: >-
  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 res…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: adp
cwe:
  - CWE-908
  - CWE-200
vendor: Eclipse Foundation
product: Eclipse Mosquitto
affected:
  - eclipse_mosquitto >= 1.5 <= 1.6.13
  - eclipse_mosquitto >= 2.0 <= 2.0.22
  - eclipse_mosquitto >= 2.1.0 <= 2.1.2
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-11-19T19:59:56.947837Z'
published: '2026-11-18'
updated: '2026-11-19'
sourceUpdated: '2026-11-19T20:00:15.192Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-130491'
references:
  - url: >-
      https://github.com/eclipse-mosquitto/mosquitto/security/advisories/GHSA-6hx2-p6j3-qrjg
  - url: 'https://gitlab.eclipse.org/security/cve-assignment/-/work_items/593'
tags:
  - cve.org
epss: 0.00532
epssPercentile: 0.45574
ingestedAt: '2026-11-18T10:07:07.413Z'
---

## Overview

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.

## Affected

- `eclipse_mosquitto >= 1.5 <= 1.6.13`
- `eclipse_mosquitto >= 2.0 <= 2.0.22`
- `eclipse_mosquitto >= 2.1.0 <= 2.1.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
