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.
📦
contiki-ng
Vendor: contiki-ng
Actively Exploited
0
CISA KEV List
PoC / Exploits
0
Code Available
Total RCEs
11
Remote Access
Total CVEs
42
Total Indexed
Avg. EPSS
0.82%
Exploit Prob.
Security Vulnerability Index
Page 5 / 5
10.0
CVSS
CVE-2018-19417
RCE
Severity: CRITICAL
9.8
CVSS
CVE-2018-1000804
RCE
contiki-ng version 4 contains a Buffer Overflow vulnerability in AQL (Antelope Query Language) database engine that can result in Attacker can perform Remote Code Execution on device using Contiki-NG operating system. This attack appear to be exploitable via Attacker must be able to run malicious AQL code (e.g. via SQL-like Injection attack).
Severity: CRITICAL