216.73.217.22

CVE-2026-54412

· Published 14/06/2026 20:17 · Modified 14/06/2026 18:17 · Author: The MITRE Corporation

Labels: CVE-2026-54412 2026-06-14309f9ea4-e3e9-4c6c-b79d-e8eb01244f2cCVE-2026-54412CWE-125

Essential information

Published
14/06/2026 20:17
Modified
14/06/2026 18:17
Author
The MITRE Corporation
Creator
The MITRE Corporation
CVSS
8.2 HIGH (v3.1) 8.8 HIGH (v4.0)
CISA KEV
No
CWE
CWE-125
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

CVSS metrics

Description

LiamBindle MQTT-C through version 1.1.6 contains a heap-based out-of-bounds read and integer underflow in the mqtt_unpack_publish_response() function in src/mqtt.c that allows a remote unauthenticated attacker controlling an MQTT broker - or able to inject MQTT traffic into an unencrypted session - to crash a subscribed MQTT-C client and potentially disclose adjacent heap memory by sending a single crafted PUBLISH packet. The function validates only that the fixed-header remaining_length is at least 4, then reads the 16-bit topic_name_size field from the broker-controlled packet and advances the parse pointer by that value without verifying that topic_name_size plus the surrounding overhead fits within remaining_length; it subsequently computes application_message_size as remaining_length - topic_name_size - 2 (QoS 0) or - 4 (QoS greater than 0) in unsigned arithmetic, producing an integer underflow that is then passed to memmove(). A PUBLISH packet with topic_name_size = 0xFFFF and remaining_length = 7 advances the parse pointer 65535 bytes past the receive buffer (out-of-bounds read) and causes an application_message_size near 2^32, crashing the process when the resulting memmove() is executed.

NVD status

Status
Received — CVE has been recently published to the CVE List and has been received by the NVD.
Source
309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
NVD
View on NVD

Affected products (CPE)

ProductCPE
liambindle / mqtt-c cpe:2.3:a:liambindle:mqtt-c:*:*:*:*:*:*:*:*

References