www/posts/2018/09/security-advisory-cve-2018-12543.md
Mosquitto 1.5.3 has been released to address a security vulnerability. It also includes other bug fixes.
A vulnerability exists in Mosquitto versions 1.5 to 1.5.2 inclusive, known as CVE-2018-12543.
If a message received by the broker has a topic that begins with $, but that
does not begin $SYS, an assert is triggered that should otherwise not be
accessible, causing Mosquitto to exit.
The issue is fixed in Mosquitto 1.5.3. Patches for older versions are available at https://mosquitto.org/files/cve/2018-12543
The fix addresses the problem by reverting a commit that intended to remove some unused checks, but also stopped part of the topic hierarchy being created.
The complete list of fixes addressed in version 1.5.3 is:
$, but is not $SYS, then an assert that should be unreachable
is triggered and Mosquitto will exit.user root in snap package config files.include_dir did not contain any files.
Closes #566.