Vulnerability · Published Sep 1, 2023 · Assigned by mitre
CVE-2023-28366
High 7.5
In plain English
A high-severity memory leak in the mosquitto package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.3%top 29.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | mosquitto | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine:v3.21 | mosquitto | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine:v3.22 | mosquitto | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine:v3.23 | mosquitto | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Alpine:v3.24 | mosquitto | 2.0.16-r0 | ALPINE-CVE-2023-28366 |
| Debian:12 | mosquitto | 2.0.11-1.2+deb12u1 | DSA-5511-1 |
| Debian:12 | mosquitto | 2.0.11-1.2+deb12u1 | DEBIAN-CVE-2023-28366 |
| Debian:13 | mosquitto | 2.0.17-1 | DEBIAN-CVE-2023-28366 |
| Debian:14 | mosquitto | 2.0.17-1 | DEBIAN-CVE-2023-28366 |
| Ubuntu:22.04:LTS | mosquitto | 2.0.11-1ubuntu1.1 | UBUNTU-CVE-2023-28366 |
| Ubuntu:22.04:LTS | mosquitto | 2.0.11-1ubuntu1.1 | USN-6492-1 |
Affected products (as reported)
Weakness: CWE-401 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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
- FEDORA-2023-9adc4be8b0 vendor-advisory
- DSA-5511 vendor-advisory
- GLSA-202401-09 vendor-advisory