CVE-2026-5857: Vulnerability in Contiki-ng
Critical. 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...
CWE-787
- Exploitation
- None confirmed
- Severity
- 9.2 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-x5g5-4jq8-vj28
- 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
- Weakness
- CWE-787
- Published
- 6 Aug 2026
- Last change
- 8 Nov 2026
Affected products
Affected versions and the first fixed release
- Contiki-ng Before a34a2dbdc8bea784bd2ae5079aa4be520cd74f2d. Fixed in a34a2dbdc8bea784bd2ae5079aa4be520cd74f2d
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes
- github.com/contiki-ng/contiki-ng/commit/a34a2dbdc8bea784bd2ae5079aa4be520cd74f2d
- github.com/contiki-ng/contiki-ng/pull/3163
Related
- Contiki-ng vulnerabilities Recent advisories, watch this product