CVE-2024-10525: Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback

CVE-2024-10525 affects 32 listed versions of Eclipse Foundation Mosquitto in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
59%EPSS (next 30 days)
30 October 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Eclipse Foundation Mosquitto

32 of 42 listed versions are affected. Fixed in 2.0.19. The newest release, 2.1.4, is not affected.

2.0.18 2.0.17 2.0.16 2.0.15 2.0.14 2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 1.6.15 1.6.14 1.6.13 1.6.12 1.6.11 1.6.10 1.6.9 1.6.8 1.6.7 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.5.9 1.5.5 1.5.2 1.4.15 1.4.14 1.4.12 1.4.11

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Eclipse on 30 October 2024. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2024-10525 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.