{"id":"CVE-2018-19417","published":"2018-11-21T19:00:00Z","modified":"2024-08-05T11:37:10Z","title":"An issue was discovered in the MQTT server in Contiki-NG before 4.2","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue was discovered in the MQTT server in Contiki-NG before 4.2. The function parse_publish_vhdr() that parses MQTT PUBLISH messages with a variable length header uses memcpy to input data into a fixed size buffer. The allocated buffer can fit only MQTT_MAX_TOPIC_LENGTH (default 64) bytes, and a length check is missing. This could lead to Remote Code Execution via a stack-smashing attack (overwriting the function return address). Contiki-NG does not separate the MQTT server from other servers and the OS modules, so access to all memory regions is possible.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.05738,"percentile":0.93237,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/contiki-ng/contiki-ng/issues/600","tags":["x_refsource_MISC"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":18.65}]},"summary":{"text":"The MQTT server in Contiki-NG before version 4.2 contains a flaw in the parse_publish_vhdr() function, which parses PUBLISH messages with a variable-length header and copies data into a fixed-size buffer without a length check. An attacker who can send a crafted MQTT PUBLISH message to the server could overflow that buffer, overwrite the function return address on the stack, and achieve remote code execution, since Contiki-NG does not isolate the MQTT server from other modules and so exposes all memory regions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:13Z"},"euvd":{"id":"EUVD-2018-11109","exploited":false,"provenance":"source"}}