All reports
High

libwebsockets: libwebsockets: arbitrary code execution via crafted MQTT PUBACK packets

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-114550

Probability of exploitation in the next 30 days: 0.71%

FIRST EPSS · 2026-11-22

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.

A flaw was found in libwebsockets. When processing Message Queuing Telemetry Transport (MQTT) publish acknowledgment (PUBACK) packets, incoming network data is not properly validated, resulting in an out-of-bounds memory write. An unauthenticated remote attacker can exploit this vulnerability by sending specially crafted packets to execute arbitrary code in the context of the running application.