CVE Catalog

CVE-2025-10543

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.23%

13th percentile - higher than 13% of all known CVEs

Summary

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 (e.g., part of an MQTT topic may leak into the message body in a PUBLISH packet). The issue arises because the data length was converted from int64/int32 to int16 without overflow checks.

Risk Assessment

MQTT packets may become corrupted or data may leak between fields (e.g., topic into message body), potentially causing communication errors or information disclosure to unintended recipients.

Recommendation

Update the paho.mqtt.golang library to a version later than 1.5.0. Avoid passing strings longer than 65535 bytes to the library until the update is applied.

Related vulnerabilities

Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS