CVE-2024-10525
mosquitto: heap buffer overflow in my_subscribe_callback
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), Ubuntu (medium).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| conan::GitLab Advisory Database Community | mosquitto | 2.0.19 |
| debian 11 | mosquitto | 2.0.11-1+deb11u2 |
| debian 12 | mosquitto | 2.0.11-1.2+deb12u2 |
| debian 13 | mosquitto | 2.0.20-1 |
| debian 14 | mosquitto | 2.0.20-1 |
| echo | mosquitto | 2.0.11-1.2+deb12u2 |
| rapidfort alpine 3.20 | mosquitto | 2.0.19-r0 |
| rapidfort alpine 3.21 | mosquitto | 2.0.19-r0 |
| rapidfort alpine 3.22 | mosquitto | 2.0.19-r0 |
| rapidfort alpine 3.23 | mosquitto | 2.0.19-r0 |
| rapidfort alpine 3.24 | mosquitto | 2.0.19-r0 |
| rapidfort debian 12 | mosquitto | 0:2.0.11-1.2+deb12u2 |
Show all 26 entries from 24 sources
| Source | Package | Fixed in |
|---|---|---|
| conan::GitLab Advisory Database Community | mosquitto | 2.0.19 |
| debian 11 | mosquitto | 2.0.11-1+deb11u2 |
| debian 12 | mosquitto | 2.0.11-1.2+deb12u2 |
| debian 13 | mosquitto | 2.0.20-1 |
| debian 14 | mosquitto | 2.0.20-1 |
| echo | mosquitto | 2.0.11-1.2+deb12u2 |
| rapidfort alpine 3.20 | mosquitto | 2.0.19-r0 |
| rapidfort alpine 3.21 | mosquitto | 2.0.19-r0 |
| rapidfort alpine 3.22 | mosquitto | 2.0.19-r0 |
| rapidfort alpine 3.23 | mosquitto | 2.0.19-r0 |
| rapidfort alpine 3.24 | mosquitto | 2.0.19-r0 |
| rapidfort debian 12 | mosquitto | 0:2.0.11-1.2+deb12u2 |
| rapidfort debian 13 | mosquitto | 0:2.0.11-1.2+deb12u2 |
| rapidfort ubuntu 20.04 | mosquitto | 0:2.0.11-1ubuntu1.2, 0:2.0.20-1 |
| rapidfort ubuntu 22.04 | mosquitto | 0:2.0.11-1ubuntu1.2, 0:2.0.20-1 |
| rapidfort ubuntu 24.04 | mosquitto | 0:2.0.11-1ubuntu1.2, 0:2.0.20-1 |
| Red Hat | mosquitto | no fix listed |
| root.io alpine 3.18 | mosquitto | 2.0.18-r00071, 2.0.18-r00072, 2.0.18-r00073, 2.0.18-r00074 |
| root.io alpine 3.18 | rootio-mosquitto | 2.0.18-r00071, 2.0.18-r00072, 2.0.18-r00073, 2.0.18-r00074 |
| root.io alpine 3.20 | mosquitto | 2.0.18-r00071, 2.0.18-r00072, 2.0.18-r00073, 2.0.18-r00074 |
| root.io alpine 3.20 | rootio-mosquitto | 2.0.18-r00071, 2.0.18-r00072, 2.0.18-r00073, 2.0.18-r00074 |
| ubuntu 16.04-ESM | mosquitto | 1.4.8-1ubuntu0.16.04.7+esm2 |
| ubuntu 18.04-ESM | mosquitto | 1.4.15-2ubuntu0.18.04.3+esm2 |
| ubuntu 20.04-ESM | mosquitto | 1.6.9-1ubuntu0.1~esm2 |
| ubuntu 22.04 | mosquitto | 2.0.11-1ubuntu1.2 |
| ubuntu 24.04 | mosquitto | no fix listed |
References
- https://access.redhat.com/security/cve/CVE-2024-10525
- https://github.com/eclipse-mosquitto/mosquitto/commit/8ab20b4ba4204fdcdec78cb4d9f03c944a6e0e1c
- https://gitlab.com/gitlab-org/security-products/gemnasium-db/-/issues/319
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/190
- https://lists.debian.org/debian-lts-announce/2025/02/msg00022.html
- https://mosquitto.org/blog/2024/10/version-2-0-19-released/
- https://nvd.nist.gov/vuln/detail/CVE-2024-10525
- https://ubuntu.com/security/notices/USN-7441-1