CVE-2025-10543CWE-197CWE-681

CVE-2025-10543

Medium · published December 2, 2025

CVSS v3.1
5.3
EPSS
0%
Percentile
12.7
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00227 · 12.7th percentile
Weaknesses
CWE-197 · Numeric Truncation Error; CWE-681 · Incorrect Conversion between Numeric Types
Published
2025-12-02T14:15Z
Affected products (1)
ProductVersionsFixed in
eclipse/paho_mqtt≤ 1.5.0—
References (1)
EPSS history
Timeline
  • 02 DEC 08:18Z
    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…
    cvelistv5