CVE-2018-12551
When Eclipse Mosquitto version 1.0 to 1.5.5 (inclusive) is configured to use a password file for authentication, any malformed data in the password file will be treated as valid. This typically means that the malformed data becomes a username and no password. If this occurs, clients can circumvent authentication and get access to the broker by using the malformed username. In particular, a blank line will be treated as a valid empty username. Other security measures are unaffected. Users who have only used the mosquitto_passwd utility to create and modify their password files are unaffected by this vulnerability.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | mosquitto | Fixed | 1.4.15-2ubuntu0.18.04.1 | UBUNTU-CVE-2018-12551 |
| Ubuntu 16.04 | mosquitto | Fixed | 1.4.8-1ubuntu0.16.04.5 | UBUNTU-CVE-2018-12551 |
| Debian 14 | mosquitto | Fixed | 1.5.6-1 | DEBIAN-CVE-2018-12551 |
| Debian 13 | mosquitto | Fixed | 1.5.6-1 | DEBIAN-CVE-2018-12551 |
| Debian 12 | mosquitto | Fixed | 1.5.6-1 | DEBIAN-CVE-2018-12551 |
| Alpine Linux 3.24 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.23 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.22 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.21 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.20 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.19 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.18 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.17 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.16 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.15 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.14 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.13 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.12 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.11 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.10 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.9 | mosquitto | Fixed | 1.5.6-r0 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.8 | mosquitto | Fixed | 1.4.15-r4 | ALPINE-CVE-2018-12551 |
| Alpine Linux 3.7 | mosquitto | Fixed | 1.4.15-r1 | ALPINE-CVE-2018-12551 |
What the vendor says
As published in the CVE record by eclipse, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- The Eclipse Foundation Eclipse Mosquitto: affected: 1.0 to before unspecified, unspecified to 1.5.5
References
- https://bugs.eclipse.org/bugs/show_bug.cgi?id=543401
- https://lists.debian.org/debian-lts-announce/2019/10/msg00035.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.