{"id":"CVE-2026-54412","aliases":["CVE-2026-54412"],"related":[],"kind":"vulnerability","state":"published","title":"MQTT-C Heap Out-of-Bounds Read and Integer Underflow in mqtt_unpack_publish_response()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"LiamBindle MQTT-C hasta la versión 1.1.6 contiene una lectura fuera de límites basada en el heap y un desbordamiento negativo de enteros en la función mqtt_unpack_publish_response() en src/mqtt.c que permite a un atacante remoto no autenticado que controla un broker MQTT - o capaz de inyectar tráfico MQTT en una sesión no cifrada - provocar la caída de un cliente MQTT-C suscrito y potencialmente divulgar memoria adyacente del heap enviando un único paquete PUBLISH manipulado. La función solo valida que el remaining_length del encabezado fijo sea al menos 4, luego lee el campo topic_name_size de 16 bits del paquete controlado por el broker y avanza el puntero de análisis por ese valor sin verificar que topic_name_size más la sobrecarga circundante encaje dentro de remaining_length; posteriormente calcula application_message_size como remaining_length - topic_name_size - 2 (QoS 0) o - 4 (QoS mayor que 0) en aritmética sin signo, produciendo un desbordamiento negativo de enteros que luego se pasa a memmove(). Un paquete PUBLISH con topic_name_size = 0xFFFF y remaining_length = 7 avanza el puntero de análisis 65535 bytes más allá del búfer de recepción (lectura fuera de límites) y provoca un application_message_size cercano a 2^32, provocando la caída del proceso cuando se ejecuta el memmove() resultante.","source":"nvd"}],"published":"2026-06-14T17:26:36.740Z","modified":"2026-11-05T13:17:07.963Z","severity":{"scorer":"TuranSec","scheme":"CVSS:4.0","vector":"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","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"TuranSec","scheme":"CVSS:4.0","vector":"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","score":7.8,"rating":"HIGH"},{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"}],"cwes":["CWE-125","CWE-191"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.1.7","status":"affected"},{"type":"semver","version":"1.1.7","status":"unaffected"}],"vendor":"LiamBindle","product":"MQTT-C","repo":"https://github.com/LiamBindle/MQTT-C","source":"cvelist"}],"references":[{"url":"https://github.com/LiamBindle/MQTT-C","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/LiamBindle/MQTT-C/blob/v1.1.6/src/mqtt.c#L1334","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/LiamBindle/MQTT-C/pull/208","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/LiamBindle/MQTT-C/releases/tag/v1.1.7","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://cwe.mitre.org/data/definitions/125.html","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://cwe.mitre.org/data/definitions/191.html","tags":["technical-description"],"sources":["cvelist","nvd"]}],"credits":["Saidakbarxon Maxsudxonov"],"assigner":"TuranSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-15T17:01:08.771Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54412","url":"https://www.cve.org/CVERecord?id=CVE-2026-54412","licence":"CVE Terms of Use","modified":"2026-11-05T12:44:48.838Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54412","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54412","licence":"Public domain","modified":"2026-11-05T13:17:07.963Z"}],"updatedAt":"2026-11-25T22:59:24.619Z","epss":{"score":0.0043,"percentile":0.39158,"date":"2026-12-01T12:00:22.000Z"}}