CVEfocus › CVE database › CVE-2023-28366

CVE-2023-28366

CVSS 7.5 HighEPSS 1.3% (higher than 71% of CVEs)Published 2023-09-01Updated 2025-06-26Assigner: mitre

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.

CWE-401

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

11Fixed
2Fix pending
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04mosquittoFixed2.0.11-1ubuntu1.1UBUNTU-CVE-2023-28366
Ubuntu 20.04mosquittoFix pendingUBUNTU-CVE-2023-28366
Ubuntu 18.04mosquittoFix pendingUBUNTU-CVE-2023-28366
Ubuntu 16.04mosquittoWill 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 14mosquittoFixed2.0.17-1DEBIAN-CVE-2023-28366
Debian 13mosquittoFixed2.0.17-1DEBIAN-CVE-2023-28366
Debian 12mosquittoFixed2.0.11-1.2+deb12u1DEBIAN-CVE-2023-28366
Alpine Linux 3.24mosquittoFixed2.0.16-r0ALPINE-CVE-2023-28366
Alpine Linux 3.23mosquittoFixed2.0.16-r0ALPINE-CVE-2023-28366
Alpine Linux 3.22mosquittoFixed2.0.16-r0ALPINE-CVE-2023-28366
Alpine Linux 3.21mosquittoFixed2.0.16-r0ALPINE-CVE-2023-28366
Alpine Linux 3.20mosquittoFixed2.0.16-r0ALPINE-CVE-2023-28366
Alpine Linux 3.19mosquittoFixed2.0.16-r0ALPINE-CVE-2023-28366
Alpine Linux 3.18mosquittoFixed2.0.16-r0ALPINE-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:

References

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.