CVEfocus › CVE database › CVE-2024-10525

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

CVSS 7.2 HighEPSS 1.4% (higher than 73% of CVEs)Published 2024-10-30Updated 2025-11-03Assigner: eclipse

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.

CWE-122

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

4Fixed
5Fix pending
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04mosquittoNot affected
vulnerable_code_not_present
Ubuntu 25.10mosquittoNot affected
vulnerable_code_not_present
Ubuntu 24.04mosquittoFix pending2.0.18-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-10525
Ubuntu 22.04mosquittoFixed2.0.11-1ubuntu1.2UBUNTU-CVE-2024-10525
Ubuntu 20.04mosquittoFix pending1.6.9-1ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2024-10525
Ubuntu 18.04mosquittoFix pending1.4.15-2ubuntu0.18.04.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2024-10525
Ubuntu 16.04mosquittoFix pending1.4.8-1ubuntu0.16.04.7+esm2 (Ubuntu Pro)UBUNTU-CVE-2024-10525
Ubuntu 14.04mosquittoFix pending0.15-2+deb7u3ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-10525
Debian 14mosquittoFixed2.0.20-1DEBIAN-CVE-2024-10525
Debian 13mosquittoFixed2.0.20-1DEBIAN-CVE-2024-10525
Debian 12mosquittoFixed2.0.11-1.2+deb12u2DEBIAN-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.

References

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.