Vulnerabilities · 2018 · Contiki-ng
CVE-2018-19417
Contiki-ng vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Contiki-ng. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Contiki-ng runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
More vulnerabilities in Contiki-ng products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.