CVE-2023-28366
The broker in Eclipse Mosquitto 1.3.2 through 2.x before 2.0.16 has a memory leak that can be abused remotely when a client sends many QoS 2 messages with duplicate message IDs, and fails to respond to PUBREC commands. This occurs because of mishandling of EAGAIN from the libc send function.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
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 22.04 | mosquitto | Fixed | 2.0.11-1ubuntu1.1 | UBUNTU-CVE-2023-28366 |
| Ubuntu 20.04 | mosquitto | Fix pending | UBUNTU-CVE-2023-28366 | |
| Ubuntu 18.04 | mosquitto | Fix pending | UBUNTU-CVE-2023-28366 | |
| Ubuntu 16.04 | mosquitto | Will not fix Memory leak requiring refactoring of core functions to be fixed. Applying the patches to versions < 2.0.0 is likely to cause regressions. | UBUNTU-CVE-2023-28366 | |
| Debian 14 | mosquitto | Fixed | 2.0.17-1 | DEBIAN-CVE-2023-28366 |
| Debian 13 | mosquitto | Fixed | 2.0.17-1 | DEBIAN-CVE-2023-28366 |
| Debian 12 | mosquitto | Fixed | 2.0.11-1.2+deb12u1 | DEBIAN-CVE-2023-28366 |
| Alpine Linux 3.24 | mosquitto | Fixed | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine Linux 3.23 | mosquitto | Fixed | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine Linux 3.22 | mosquitto | Fixed | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine Linux 3.21 | mosquitto | Fixed | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine Linux 3.20 | mosquitto | Fixed | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine Linux 3.19 | mosquitto | Fixed | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine Linux 3.18 | mosquitto | Fixed | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2023/dsa-5511 (vendor-advisory)
- https://security.gentoo.org/glsa/202401-09 (vendor-advisory)
References
- https://github.com/eclipse/mosquitto/compare/v2.0.15...v2.0.16
- https://www.compass-security.com/fileadmin/Research/Advisories/2023_02_CSNC-2023-001_Eclipse_Mosquitto_Memory_Leak.txt
- https://mosquitto.org/blog/2023/08/version-2-0-16-released/
- https://github.com/eclipse/mosquitto/commit/6113eac95a9df634fbc858be542c4a0456bfe7b9
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJ2FMBGVVQEQWTTQB7YLKTAHMX2UM66X/
- https://www.debian.org/security/2023/dsa-5511
- https://security.gentoo.org/glsa/202401-09
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.