NULL pointer dereference in Eclipse Mosquitto - CVE-2021-28166

 

NULL pointer dereference in Eclipse Mosquitto - CVE-2021-28166

Published: April 8, 2021


Vulnerability identifier: #VU51973
CSH Severity: Medium
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-28166
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error in Eclipse Mosquitto when processing CONNACK messages. A remote authenticated user connected with MQTT v5 can send a specially crafted CONNACK message to the broker, trigger a NULL pointer dereference error and crash the service.


Affected software

Eclipse Mosquitto
Fedora
mosquitto

How to mitigate CVE-2021-28166

Install update from vendor's website.

Eclipse Mosquitto - update to 2.0.10
mosquitto - update to 1.6.15-1.el8

External References

Related Security Bulletins