{"id":"CVE-2026-54412","summary":"MQTT-C Heap Out-of-Bounds Read and Integer Underflow in mqtt_unpack_publish_response()","details":"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.","modified":"2026-08-12T03:51:42.312143504Z","published":"2026-06-14T17:26:36.740Z","database_specific":{"cna_assigner":"TuranSec","cwe_ids":["CWE-125","CWE-191"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54412.json"},"references":[{"type":"WEB","url":"https://github.com/LiamBindle/MQTT-C/blob/v1.1.6/src/mqtt.c#L1334"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54412.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54412"},{"type":"PACKAGE","url":"https://github.com/LiamBindle/MQTT-C"},{"type":"ARTICLE","url":"https://cwe.mitre.org/data/definitions/125.html"},{"type":"ARTICLE","url":"https://cwe.mitre.org/data/definitions/191.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/liambindle/mqtt-c","events":[{"introduced":"0"},{"fixed":"f69ce1e7fd54f3b1834c9c9137ce0ec5d703cb4d"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"1.1.6"},{"fixed":"1.1.6"}],"source":["AFFECTED_FIELD","DESCRIPTION"]}}],"versions":["1.1.5","1.1.4","1.1.3","1.1.2","1.1.1","1.1.0","1.0.3","1.0.2","1.0.1","1.0.0","v1.1.0","v1.0.3","v1.0.2","v1.0.1","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54412.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}