Vulnerabilities / CVE-2024-10525

critical

CVE-2024-10525

mosquitto: heap buffer overflow in my_subscribe_callback

Published Modified CWE 122, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.6CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H

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

SourcePackageFixed in
conan::GitLab Advisory Database Communitymosquitto2.0.19
debian 11mosquitto2.0.11-1+deb11u2
debian 12mosquitto2.0.11-1.2+deb12u2
debian 13mosquitto2.0.20-1
debian 14mosquitto2.0.20-1
echomosquitto2.0.11-1.2+deb12u2
rapidfort alpine 3.20mosquitto2.0.19-r0
rapidfort alpine 3.21mosquitto2.0.19-r0
rapidfort alpine 3.22mosquitto2.0.19-r0
rapidfort alpine 3.23mosquitto2.0.19-r0
rapidfort alpine 3.24mosquitto2.0.19-r0
rapidfort debian 12mosquitto0:2.0.11-1.2+deb12u2
Show all 26 entries from 24 sources
SourcePackageFixed in
conan::GitLab Advisory Database Communitymosquitto2.0.19
debian 11mosquitto2.0.11-1+deb11u2
debian 12mosquitto2.0.11-1.2+deb12u2
debian 13mosquitto2.0.20-1
debian 14mosquitto2.0.20-1
echomosquitto2.0.11-1.2+deb12u2
rapidfort alpine 3.20mosquitto2.0.19-r0
rapidfort alpine 3.21mosquitto2.0.19-r0
rapidfort alpine 3.22mosquitto2.0.19-r0
rapidfort alpine 3.23mosquitto2.0.19-r0
rapidfort alpine 3.24mosquitto2.0.19-r0
rapidfort debian 12mosquitto0:2.0.11-1.2+deb12u2
rapidfort debian 13mosquitto0:2.0.11-1.2+deb12u2
rapidfort ubuntu 20.04mosquitto0:2.0.11-1ubuntu1.2, 0:2.0.20-1
rapidfort ubuntu 22.04mosquitto0:2.0.11-1ubuntu1.2, 0:2.0.20-1
rapidfort ubuntu 24.04mosquitto0:2.0.11-1ubuntu1.2, 0:2.0.20-1
Red Hatmosquittono fix listed
root.io alpine 3.18mosquitto2.0.18-r00071, 2.0.18-r00072, 2.0.18-r00073, 2.0.18-r00074
root.io alpine 3.18rootio-mosquitto2.0.18-r00071, 2.0.18-r00072, 2.0.18-r00073, 2.0.18-r00074
root.io alpine 3.20mosquitto2.0.18-r00071, 2.0.18-r00072, 2.0.18-r00073, 2.0.18-r00074
root.io alpine 3.20rootio-mosquitto2.0.18-r00071, 2.0.18-r00072, 2.0.18-r00073, 2.0.18-r00074
ubuntu 16.04-ESMmosquitto1.4.8-1ubuntu0.16.04.7+esm2
ubuntu 18.04-ESMmosquitto1.4.15-2ubuntu0.18.04.3+esm2
ubuntu 20.04-ESMmosquitto1.6.9-1ubuntu0.1~esm2
ubuntu 22.04mosquitto2.0.11-1ubuntu1.2
ubuntu 24.04mosquittono fix listed

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.