CVE-2018-19417 Memory corruption in n/a
A buffer overflow in the MQTT server allows remote attackers to execute arbitrary code via stack smashing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-19417?
CVE-2018-19417 is a critical memory corruption vulnerability in n/a, published on 21 Nov 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-119
Which versions are affected by CVE-2018-19417?
It affects 1 product.
Products include Contiki-Ng Contiki-Ng.
How do I fix CVE-2018-19417?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2018-19417 being exploited?
There is no known exploitation of CVE-2018-19417 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-cxvc-6cjq-88vx.