CVE-2026-114550

libwebsockets MQTT Protocol PUBACK Packet Handling Out-Of-Bounds Write Remote Code Execution Vulnerability

Published Nov 3, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
libwebsockets MQTT Protocol PUBACK Packet Handling Out-Of-Bounds Write Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of libwebsockets. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of PUBACK packets. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-31039.

Analysis

AI-generated

Technical impact

libwebsockets implements the MQTT protocol and processes PUBACK packets without sufficient validation. This omission allows an attacker to craft a malformed PUBACK packet that triggers an out‑of‑bounds write to a user‑supplied buffer. The resulting memory corruption enables execution of arbitrary code within the context of the running process, allowing full system compromise. The weakness is classed as an out‑of‑bounds write, CWE‑787.

Affected Systems

The flaw resides in the libwebsockets library. Affected installations are any systems that compile or link against libwebsockets without applying the recent commit that addresses the PUBACK validation. No specific product version range is listed, so any build prior to the patched release is potentially vulnerable.

Risk and Exploitability

The vulnerability carries a CVSS score of 8.1, indicating high severity. EPSS data is not available, so the current exploitation probability cannot be quantified, and the vulnerability is not listed in the CISA KEV catalog. Remote attackers can exploit the issue over the network; authentication is not required. Successful exploitation would give an attacker the same privileges as the running process, which could lead to full system compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libwebsockets to a version that includes the commit c9e8e1834d7f13038c82963086b90e2ee9c5b44c or later, which implements proper validation for PUBACK packets,
  • Replace the current libwebsockets binary with a patched build that incorporates the change cited in the GitHub commit, ensuring the parsing code no longer allows out‑of‑bounds writes,
  • If an upgrade cannot be performed immediately, disable or remove MQTT support from the application or restrict the network interface used for MQTT traffic to mitigate exposure.

Generated by OpenCVE AI on November 4, 2026 at 07:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Libwebsockets
Libwebsockets libwebsockets
Vendors & Products Libwebsockets
Libwebsockets libwebsockets
Type Values Removed Values Added
Description libwebsockets MQTT Protocol PUBACK Packet Handling Out-Of-Bounds Write Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of libwebsockets. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of PUBACK packets. The issue results from the lack of proper validation of user-supplied data, which can result in a write past the end of an allocated buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-31039.
Title libwebsockets MQTT Protocol PUBACK Packet Handling Out-Of-Bounds Write Remote Code Execution Vulnerability
Weaknesses CWE-787
References
Metrics cvssV3_0

{'score': 8.1, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
zdi
Published
Updated
Nov 6, 2026, 6:55 PM
Reserved
Oct 21, 2026, 5:10 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 12:17 AM
Modified
Nov 12, 2026, 8:28 PM
Severity
Important
Public date
Nov 3, 2026, 11:47 PM