CVE-2026-5857

Contiki-NG · Contiki-NG

Contiki-NG is vulnerable to an out-of-bounds write in the MQTT client parse_publish_vhdr function, potentially leading to memory corruption.

Executive summary

A critical out-of-bounds write vulnerability in the Contiki-NG MQTT client allows unauthenticated remote attackers to trigger memory corruption, posing a significant risk to system stability.

Vulnerability

This is an out-of-bounds write vulnerability (CWE-787) located in the parse_publish_vhdr function within the MQTT client implementation. The vulnerability is exploitable by an unauthenticated remote attacker.

Business impact

Successful exploitation of this memory corruption vulnerability could result in a denial of service or potentially arbitrary code execution within the context of the MQTT client. Given the CVSS score of 8.1, the high potential for system impact necessitates immediate attention to prevent disruption of critical IoT or embedded communications.

Remediation

Immediate Action: Update the Contiki-NG source code to include the fix provided in commit a34a2dbdc8bea784bd2ae5079aa4be520cd74f2d.

Proactive Monitoring: Monitor MQTT traffic for malformed packets or unexpected client crashes that may indicate exploitation attempts.

Compensating Controls: Implement strict network segmentation to isolate MQTT-enabled devices and limit exposure to untrusted network traffic.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

The severity of this vulnerability, combined with its potential to impact core network functionality, requires immediate remediation. Developers and system integrators should integrate the provided upstream fix into their build environments as soon as possible to mitigate the risk of remote compromise.