ZDI-26-792: libwebsockets MQTT PUBACK Out‑Of‑Bounds Write Enables Remote Code Execution (CVE‑2026‑114550)
What It Is — The Zero Day Initiative (ZDI) disclosed a critical flaw in the open‑source libwebsockets library (CVE‑2026‑114550). The vulnerability resides in the handling of MQTT PUBACK packets. When a PUBACK is received, libwebsockets fails to validate the length of a user‑supplied field, allowing a write past the end of an allocated buffer. Because the write occurs in the process’s address space, an unauthenticated remote attacker can inject arbitrary code and achieve full remote code execution (RCE) with CVSS 8.1 (High) severity. No authentication, user interaction, or special privileges are required; the attack vector is network‑accessible (AV:N) and the exploit complexity is high (AC:H) due to the need for precise packet crafting.
Affected Products — libwebsockets (any version prior to the October 2026 patch).
Why It Matters for Trust & Control Assurance — This flaw tests the secure development and input‑validation control objective: organizations must ensure that third‑party components are built, reviewed, and patched against unsafe memory handling. Satisfying this control provides evidence across multiple frameworks (e.g., NIST CSF 2.0, ISO 27001) that the software supply chain is managed responsibly.
Recommended Actions
- Inventory all deployments that embed libwebsockets, including embedded devices, IoT gateways, and cloud‑native services that use MQTT.
- Apply the vendor‑provided patch (commit c9e8e1834d7f13038c82963086b90e2ee9c5b44c) immediately. Verify the patch level with a hash‑based check.
- Validate remediation by scanning binaries for the vulnerable code path (e.g., using static analysis or SBOM comparison).
- Update your secure‑development controls: enforce code‑review checklists that include bounds‑checking for all network‑protocol parsers, and integrate automated fuzz testing for MQTT handling.
- Document the change in your control‑evidence repository to demonstrate ongoing vulnerability‑management compliance.
Source: Zero Day Initiative advisory