CVE-2018-19417

An issue was discovered in the MQTT server in Contiki-NG before 4.2

published November 21, 2018

CVSS
—
EPSS
6%
Percentile
93.0
In the wild
Unconfirmed
What it is

🚨 A missing length check in the Contiki-NG MQTT server could turn a regular message into a ticket for full remote code execution! 🔥 Think of it like a restaurant where the chef accepts orders without checking how much food is actually needed — a single oversized pizza order could overwhelm the kitchen and cause chaos! 🍕 With this vulnerability, an attacker could overwrite a function’s return address, potentially leading to arbitrary code execution. This means they could gain complete control over the server, or worse, pivot into other critical systems. The ramifications could be absolutely devastating!

Put simply

Think of it like a restaurant where the chef accepts orders without checking how much food is actually needed — a single oversized pizza order could overwhelm the kitchen and cause chaos! 🍕 This flaw arises because the function parse_publish_vhdr() uses memcpy to copy data into a fixed-size buffer without verifying the length of the incoming MQTT PUBLISH messages. If the message exceeds the buffer size, it can overwrite adjacent memory, leading to a stack-smashing attack.

What to do

With this vulnerability, an attacker could overwrite a function’s return address, potentially leading to arbitrary code execution. This means they could gain complete control over the server, or worse, pivot into other critical systems. The ramifications could be absolutely devastating! To mitigate this, upgrade Contiki-NG to version 4.2 or later as it addresses this issue. Additionally, review your MQTT message handling to ensure proper size checks are implemented. Don't leave your servers vulnerable! This is fixable! Follow these steps and you'll have your MQTT server secured in no time. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.05692 · 93.0th percentile
Published
2018-11-21T19:00Z
EPSS history
Timeline
  • 21 NOV 19:00Z
    An issue was discovered in the MQTT server in Contiki-NG before 4.2
    cvelistv5