CVE-2025-10543Numeric Truncation Error in Eclipse Paho.mqtt.golang

Severity
6.3MEDIUMNVD
EPSS
0.0%
top 84.93%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 2
Latest updateDec 15

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

CVSS vector

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

🔴Vulnerability Details

3
OSV
Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes in github.com/eclipse/paho.mqtt.golang2025-12-15
GHSA
Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes2025-12-02
OSV
Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes2025-12-02

📋Vendor Advisories

2
Microsoft
CVE-2025-10543: Mariner: Mariner eclipse: eclipse Customer Action Required: Yes Remediation: CBL-Mariner Releases Reference: https://learn2025-12-09
Red Hat
paho.mqtt.golang: paho.mqtt.golang: Integer Overflow in UTF-8 String Encoding2025-12-02