Buffer overflow in Contiki-Ng

CVE-2018-19417

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.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.057 (92.7th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 93rd percentile — 92.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2018-19417: held from 0.057 to 0.057.

EPSS over last 30 days · oldest: 0.057 · newest: 0.057 · change: 0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2018-19417?
CVE-2018-19417 is a critical-severity vulnerability in Contiki-Ng, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. CVSS score: 10.0/10. Published 2018-11-21.
How severe is CVE-2018-19417?
Critical severity. CVSS v3 base score is 10.0 out of 10.
Is CVE-2018-19417 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.