CVE-2026-130491 Uninitialized heap disclosure in CONNECT through Will payload length truncation

Not scored Published Updated

MQTT clients can leak up to 65535 bytes of uninitialized heap memory in Will messages; applications using libmosquitto should care.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
Yes
Fix
None listed

What is CVE-2026-130491?

CVE-2026-130491 is an information disclosure vulnerability in Eclipse Mosquitto, published on 18 Nov 2026. It can be exploited over the network, with no action from the victim.

Official 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.

Weakness: CWE-908, CWE-200

Which versions are affected by CVE-2026-130491?

An affected version is only exploitable if your software calls mosquitto_will_set() or mosquitto_will_set_v5(). Many projects that include it are not exposed.

How do I fix CVE-2026-130491?

No fix has been published for CVE-2026-130491 yet. Limit exposure of the affected software until one is available.

Upgrade, and rotate any secrets that may have been exposed. More about Information disclosure.

Is CVE-2026-130491 being exploited?

There is no known exploitation of CVE-2026-130491 in the wild and no public exploit code.

Sources

Also known as GHSA-6hx2-p6j3-qrjg.

Is CVE-2026-130491 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free