CVE-2025-10543

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).
References
Link Resource
https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/254 Issue Tracking Vendor Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:eclipse:paho_mqtt:*:*:*:*:*:go:*:*

History

18 Oct 2026, 18:10

Type Values Removed Values Added
Summary
  • (es) En las versiones menor o igual que 1.5.0 de la biblioteca Eclipse Paho Go MQTT v3.1 (paho.mqtt.golang), las cadenas codificadas en UTF-8, pasadas a la biblioteca, pueden codificarse incorrectamente si su longitud excede los 65535 bytes. Esto puede llevar a contenido inesperado en los paquetes enviados al servidor (por ejemplo, parte de un tema MQTT puede filtrarse en el cuerpo del mensaje en un paquete PUBLISH). El problema surge porque la longitud de los datos pasados se convirtió de un int64/int32 (dependiendo de la CPU) a un int16 sin comprobaciones de desbordamientos. La longitud int16 se escribió entonces, seguida de los datos (por ejemplo, el tema). Esto significaba que cuando los datos (por ejemplo, el tema) superaban los 65535 bytes, entonces la cantidad de datos escritos excedía lo que indicaba el campo de longitud. Esto podría llevar a un paquete corrupto, o significar que el exceso de datos se filtra en otro campo (por ejemplo, el tema se filtra en el cuerpo del mensaje).

Information

Published : 2025-12-02 09:15

Updated : 2026-10-18 18:10


NVD link : CVE-2025-10543

Mitre link : CVE-2025-10543

CVE.ORG link : CVE-2025-10543


JSON object : View

Products Affected

eclipse

  • paho_mqtt
CWE
CWE-197

Numeric Truncation Error

CWE-681

Incorrect Conversion between Numeric Types