CVE-2025-10543
MEDIUM 6.3CVSS 4.0Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes
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).
- Published
- 2 Dec 2025
- Last modified
- 18 Oct 2026
- Assigned by
- emo@eclipse.org
- NVD status
- Analyzed
- Weakness
- CWE-197
- Also known as
- GHSA-32fw-gq77-f2f2GO-2025-4173
- Sources
- NVDJSONOSV GHSA-32fw-gq77-f2f2JSONOSV GO-2025-4173JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | emo@eclipse.org (Secondary) | CVSS 4.0 | MEDIUM 6.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | eclipse | paho_mqttcpe:2.3:a:eclipse:paho_mqtt:*:*:*:*:*:go:*:* |
<= 1.5.0 | |
| OSV | Go | github.com/eclipse/paho.mqtt.golang | < 1.5.1 | 1.5.1 |
References
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/254 · Issue Tracking, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-10543 · ADVISORY
- https://github.com/eclipse-paho/paho.mqtt.golang/issues/730 · WEB
- https://github.com/eclipse-paho/paho.mqtt.golang/pull/714 · WEB
- https://github.com/alpinelinux/build-server-status/commit/e3487897db32c8c3d0287643f8384a6669e93731 · WEB
- https://github.com/advisories/GHSA-32fw-gq77-f2f2 · ADVISORY
- https://github.com/eclipse-paho/paho.mqtt.golang · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 2 Dec 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Dec 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 2 Dec 2025)