Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-32fw-gq77-f2f2

Опубликовано: 02 дек. 2025
Источник: github
Github: Прошло ревью
CVSS4: 6.3

Описание

Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes

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

Пакеты

Наименование

github.com/eclipse/paho.mqtt.golang

go
Затронутые версииВерсия исправления

< 1.5.1

1.5.1

EPSS

Процентиль: 11%
0.00039
Низкий

6.3 Medium

CVSS4

Дефекты

CWE-197

Связанные уязвимости

CVSS3: 5.3
nvd
2 месяца назад

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

EPSS

Процентиль: 11%
0.00039
Низкий

6.3 Medium

CVSS4

Дефекты

CWE-197