Skip to content
OpenAdvisories
Medium · 6.3 CVE-2025-10543 EUVD-2025-200211GHSA-32fw-gq77-f2f2GO-2025-4173

Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes

Published Dec 2, 2025 · Updated Dec 2, 2025 · Assigned by eclipse

Description

In Eclipse Paho Go MQTT v3.1 library (paho.mqtt.golang) versions <=1.5.0 UTF-8 encoded strings, passed into the library, may be incorrectly encoded if their length exceeds 65535 bytes. This may lead to unexpected content in packets sent to the server (for example, part of an MQTT topic may leak into the message body in a PUBLISH packet).

The issue arises because the length of the data passed in was converted from an int64/int32 (depending upon CPU) to an int16 without checks for overflows. The int16 length was then written, followed by the data (e.g. topic). This meant that when the data (e.g. topic) was over 65535 bytes then the amount of data written exceeds what the length field indicates. This could lead to a corrupt packet, or mean that the excess data leaks into another field (e.g. topic leaks into message body).

Affected products

VendorProductAffectedFixed
Eclipse Foundation paho.mqtt.golang (Go MQTT v3.1 library) ≤ 1.5.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20251230T014957-150000.1.134.1 SUSE-SU-2026:0037-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 influxdb 2.7.5-10 —
Azure Linux 3 telegraf 1.31.0-12 —
Azure Linux 2 (CBL-Mariner) influxdb 2.6.1-27 —
Azure Linux 2 (CBL-Mariner) telegraf 1.29.4-18 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling bento +1 1.13.1-r0 —
Wolfi rolling falcosidekick 2.32.0-r3 —
Wolfi rolling minio +1 0.20251015.172955-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/eclipse/paho.mqtt.golang < 1.5.1 1.5.1 GHSA-32fw-gq77-f2f2

Advisories 2

References