{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-5857","published":"2026-08-06T22:18:10.900000Z","last_modified":"2026-09-24T20:06:30.133000Z","status":"Deferred","cvss":{"version":"4.0","score":9.2,"severity":"CRITICAL","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"disclosure@vulncheck.com","primary":false},"auth":false,"cwes":["CWE-787"],"cpes":[],"cpes_truncated":false,"vendors":["contiki-ng"],"products":["contiki-ng/contiki-ng"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":70,"links":{"html_es":"/es/cve/CVE-2026-5857/","html_en":"/en/cve/CVE-2026-5857/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-5857","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-5857"},"untrusted":{"vendor_name":"Contiki-NG","product_name":"Contiki-NG","desc_en":"Contiki-NG's MQTT client parse_publish_vhdr() in os/net/app-layer/mqtt/mqtt.c sets topic_len_received=1 before checking topic_len against the 64-byte limit, so an over-length topic returns early but leaves the flag set. On the next TCP segment, tcp_input() re-invokes the parser with topic_received==0, and the persisted topic_len_received==1 skips the length-reading block containing the guard, falling through directly to a memcpy() that uses the unvalidated 16-bit topic_len as the copy length. The 65-byte topic[] destination overruns into adjacent struct fields including the payload_chunk pointer, which subsequent MQTT code dereferences, giving a compromised or attacker-controlled broker an arbitrary-pointer-write primitive. Contiki-NG's MQTT implementation has no TLS support so the connection is plaintext. Impact ranges from information disclosure and denial of service to remote code execution on embedded targets without memory protection.","affected":[{"untrusted_vendor":"Contiki-NG","untrusted_product":"Contiki-NG","versions":[]}],"references":[{"url":"https://github.com/contiki-ng/contiki-ng","tags":[]},{"url":"https://github.com/contiki-ng/contiki-ng/commit/a34a2dbdc8bea784bd2ae5079aa4be520cd74f2d","tags":[]},{"url":"https://github.com/contiki-ng/contiki-ng/pull/3163","tags":[]},{"url":"https://y637f9qq2x.com/posts/cve-2026-5857/","tags":[]}]}}