CVE-2024-10525Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback
In Eclipse Mosquitto, from version 1.3.2 through 2.0.18, if a malicious broker sends a crafted SUBACK packet with no reason codes, a client using libmosquitto may make out of bounds memory access when acting in its on_subscribe callback. This affects the mosquitto_sub and mosquitto_rr clients.
What to do
Fixed builds are available from 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 26.04 | mosquitto | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | mosquitto | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | mosquitto | Fix pending | 2.0.18-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-10525 |
| Ubuntu 22.04 | mosquitto | Fixed | 2.0.11-1ubuntu1.2 | UBUNTU-CVE-2024-10525 |
| Ubuntu 20.04 | mosquitto | Fix pending | 1.6.9-1ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-10525 |
| Ubuntu 18.04 | mosquitto | Fix pending | 1.4.15-2ubuntu0.18.04.3+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-10525 |
| Ubuntu 16.04 | mosquitto | Fix pending | 1.4.8-1ubuntu0.16.04.7+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-10525 |
| Ubuntu 14.04 | mosquitto | Fix pending | 0.15-2+deb7u3ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-10525 |
| Debian 14 | mosquitto | Fixed | 2.0.20-1 | DEBIAN-CVE-2024-10525 |
| Debian 13 | mosquitto | Fixed | 2.0.20-1 | DEBIAN-CVE-2024-10525 |
| Debian 12 | mosquitto | Fixed | 2.0.11-1.2+deb12u2 | DEBIAN-CVE-2024-10525 |
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.
- Eclipse Foundation mosquitto: affected: 1.3.2 to 2.0.18
References
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/190
- https://mosquitto.org/blog/2024/10/version-2-0-19-released/
- https://github.com/eclipse-mosquitto/mosquitto/commit/8ab20b4ba4204fdcdec78cb4d9f03c944a6e0e1c
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.