# CVE-2026-54412: MQTT-C Heap Out-of-Bounds Read and Integer Underflow in mqtt_unpack_publish_response()

- Severity: High 7.8 (CVSS:4.0, scored by TuranSec) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-06-14T17:26:36.740Z
- Modified: 2026-11-05T13:17:07.963Z
- Weaknesses: CWE-125, CWE-191
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: TuranSec

## Description

LiamBindle MQTT-C versions prior to 1.1.7 contain a heap-based out-of-bounds read and integer underflow in the mqtt_unpack_publish_response() function in src/mqtt.c. A remote unauthenticated attacker controlling an MQTT broker, or capable of injecting MQTT traffic into an unencrypted session, can crash a subscribed MQTT-C client and potentially disclose adjacent heap memory by sending a single crafted PUBLISH packet.

(As written by CVE List.)

## Affected

- LiamBindle MQTT-C: before 1.1.7 (not affected: 1.1.7)

## Every score

- TuranSec: CVSS: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: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`

## References

- <https://github.com/LiamBindle/MQTT-C> (product)
- <https://github.com/LiamBindle/MQTT-C/blob/v1.1.6/src/mqtt.c#L1334> (product)
- <https://github.com/LiamBindle/MQTT-C/pull/208> (patch)
- <https://github.com/LiamBindle/MQTT-C/releases/tag/v1.1.7> (patch, release-notes)
- <https://cwe.mitre.org/data/definitions/125.html> (technical-description)
- <https://cwe.mitre.org/data/definitions/191.html> (technical-description)

## Sources

- CVE List: [CVE-2026-54412](https://www.cve.org/CVERecord?id=CVE-2026-54412), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-54412](https://nvd.nist.gov/vuln/detail/CVE-2026-54412), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-54412 · Whole record: https://cve.day/CVE-2026-54412.json · Rebuilt by cve.day 2026-11-25T22:59:24.619Z
