CVE-2025-10543
published medium CVSS 4.0 · 6.3paho.mqtt.golang: Integer Overflow in UTF-8 String Encoding
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Eclipse Foundation | — | paho.mqtt.golang (Go MQTT v3.1 library)0 through 1.5.0 · Other versions: unaffected | Affected | Not stated | 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).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- eclipse · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Eclipse Foundation | paho.mqtt.golang (Go MQTT v3.1 library) | 0 through 1.5.0 (affected · semver)Default: unaffected | eclipse · cna |
Weaknesses
2- CWE-681 CWE-681 Incorrect Conversion between Numeric Types
- CWE-197 CWE-197 Numeric Truncation Error
References
1Provider assertions
2eclipse · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 07a5e62e12642d6f9966f4575e46d9bfb2bce0b0e46875bb11941209ef5570e5
- Ingested
- 23 Sep 2026, 08:35:46 UTC
- Source record
- Official CVE record