CVE-2026-54412
MQTT-C Heap Out-of-Bounds Read and Integer Underflow in mqtt_unpack_publish_response()
- State
- Published
- Severity
- 7.8 High
- Published
- Jun 14, 2026
- Updated
- Aug 10, 2026
- Reserved
- Jun 13, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.8 High | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y/V:D | TuranSec |
| 3.1 | 8.2 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H | TuranSec |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
MQTT-CLiamBindle |
|
References
- LiamBindle/MQTT-C - upstream repository (unmaintained since 2022-10-27)product
- Vulnerable mqtt_unpack_publish_response() in src/mqtt.c (v1.1.6)product
- CWE-125: Out-of-bounds Readtechnical-description
- CWE-191: Integer Underflow (Wrap or Wraparound)technical-description
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.