CVE-2024-3935Eclipse Mosquito: Double free vulnerability
In Eclipse Mosquito, versions from 2.0.0 through 2.0.18, if a Mosquitto broker is configured to create an outgoing bridge connection, and that bridge connection has an incoming topic configured that makes use of topic remapping, then if the remote connection sends a crafted PUBLISH packet to the broker a double free will occur with a subsequent crash of the broker.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | mosquitto | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | mosquitto | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | mosquitto | Fix pending | 2.0.18-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-3935 |
| Ubuntu 22.04 | mosquitto | Fixed | 2.0.11-1ubuntu1.2 | UBUNTU-CVE-2024-3935 |
| Debian 14 | mosquitto | Fixed | 2.0.20-1 | DEBIAN-CVE-2024-3935 |
| Debian 13 | mosquitto | Fixed | 2.0.20-1 | DEBIAN-CVE-2024-3935 |
| Debian 12 | mosquitto | Fixed | 2.0.11-1.2+deb12u2 | DEBIAN-CVE-2024-3935 |
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.
- Eclipse Foundation mosquitto: affected: 2.0.0 to 2.0.18
References
- https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/197
- https://mosquitto.org/blog/2024/10/version-2-0-19-released/
- https://github.com/eclipse-mosquitto/mosquitto/commit/ae7a804dadac8f2aaedb24336df8496a9680fda9
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.