CVE-2026-5857
Last modified
CVE-2026-5857 is a critical-severity vulnerability rated 9.2/10 on the CVSS scale. 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. EPSS estimates a 0.53% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Contiki-NG | Contiki-NG | < a34a2dbdc8bea784bd2ae5079aa4be520cd74f2d |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-5857?
How severe is CVE-2026-5857?
How do I fix CVE-2026-5857?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58555Permission bypass vulnerability in the card module. Impact: …6.6
- CVE-2026-58556Permission control vulnerability in the Bluetooth module. Im…5.1
- CVE-2026-58557Design defect vulnerability in Expedition mode. Impact: Succ…4.8
- CVE-2026-58558Permission control vulnerability in the file system. Impact:…7.8
- CVE-2026-58559DoS vulnerability in the vibration service. Impact: Successf…6.5
- CVE-2026-5856Contiki-NG's DNS/mDNS resolver skip_name() in os/services/re…7.1
- CVE-2026-58578LobeChat before version 2.2.10-canary.15 contains a regular …7.1
- CVE-2026-58579RAGFlow before 0.26.3 stores an agent pipeline (DSL) node na…5.4
- CVE-2026-5858Heap buffer overflow in WebML in Google Chrome prior to 147.…8.8
- CVE-2026-58580LobeChat through 2.2.9 server-database deployments are vulne…6
- CVE-2026-58583FluxInk (formerly Sunia SPB Peripheral) Color Management Dri…8.4
- CVE-2026-58586Image::WebP versions before 0.3.0 for Perl bundle a vulnerab…9.8
Are you affected by CVE-2026-5857?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
