What’s Vulnerable › Vulnerabilities
CVE-2024-10525: Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 59.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-10-30 · updated 2026-06-17
- Weakness: CWE-122
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 products
- The Eclipse Foundation Eclipse Mosquitto: from 1.3.2 before 2.0.19 — fixed in 2.0.19
How to fix
Upgrade to a fixed version: The Eclipse Foundation Eclipse Mosquitto 2.0.19. Check the vendor advisory for mitigations.
References
- https://github.com/eclipse-mosquitto/mosquitto/commit/8ab20b4ba4204fdcdec78cb4d9f03c944a6e0e1c
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/190
- https://mosquitto.org/blog/2024/10/version-2-0-19-released/
- https://lists.debian.org/debian-lts-announce/2025/02/msg00022.html
Get alerted when CVE-2024-10525 or the next vulnerability affects your stack