# CVE-2018-19417

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 4.2 (CNA); fix release not confirmed
- Status: published
- Published: 2018-11-21 · Modified: 2024-08-05
- Record: https://cvemate.com/vulnerability/CVE-2018-19417 · JSON: https://cvemate.com/vulnerability/CVE-2018-19417/json

## Description

```text
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.
```

## Signals

- CVSS: 10 critical (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS: 5.738%, percentile 93.26%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- contiki-ng contiki-ng: \< 4.2

## References

- <https://github.com/contiki-ng/contiki-ng/issues/600>

---

Data as of 2026-12-05T13:02:00.068Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
