CVE-2024-3935
Eclipse 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
6.0
Eclipse 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.
- Record
CVE-2024-3935- CVSS 4.0
- 6.0 Medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-415
- Updated
- 2026-11-02
EUVDEUVD-2024-32502
6.0
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.
- Record
EUVD-2024-32502- CVSS 4.0
- 6.0 Medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-r5mw-c5jc-r788
6.0
In Eclipse Mosquito, versions from 2.0.0 through 2.0.18, if a Mosquitto broker is configured to...
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.
- Record
GHSA-r5mw-c5jc-r788- CVSS 4.0
- 6.0 Medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
NVD
6.0
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.
- Record
CVE-2024-3935- CVSS 4.0
- 6.0 Medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
OSV
6.0
Eclipse 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.
- Record
CVE-2024-3935- CVSS 4.0
- 6.0 Medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N - Weakness
- CWE-415
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-3935
6.5
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.
- Record
DEBIAN-CVE-2024-3935- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 11 moreShow less
OSVOESA-2024-2343
9.1
mosquitto security update
Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "machine to machine" messaging such as with low power sensors or mobile devices such as phones, embedded computers or micro-controllers like the Arduino.
Security Fix(es):
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.(CVE-2024-10525)
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.(CVE-2024-3935)
- Record
OESA-2024-2343- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2024-2344
9.1
mosquitto security update
Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "machine to machine" messaging such as with low power sensors or mobile devices such as phones, embedded computers or micro-controllers like the Arduino.
Security Fix(es):
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.(CVE-2024-10525)
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.(CVE-2024-3935)
- Record
OESA-2024-2344- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2024-2345
9.1
mosquitto security update
Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "machine to machine" messaging such as with low power sensors or mobile devices such as phones, embedded computers or micro-controllers like the Arduino.
Security Fix(es):
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.(CVE-2024-10525)
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.(CVE-2024-3935)
- Record
OESA-2024-2345- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2024-2346
9.1
mosquitto security update
Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "machine to machine" messaging such as with low power sensors or mobile devices such as phones, embedded computers or micro-controllers like the Arduino.
Security Fix(es):
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.(CVE-2024-10525)
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.(CVE-2024-3935)
- Record
OESA-2024-2346- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-3935
6.0
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.
- Record
UBUNTU-CVE-2024-3935- CVSS 4.0
- 6.0 Medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15074-1 No score
libmosquitto1-2.0.21-2.1 on GA media
These are all security issues fixed in the libmosquitto1-2.0.21-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15074-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:20260-1 No score
Security update for mosquitto
This update for mosquitto fixes the following issues:
Changes in mosquitto:
-
update to 2.0.23 (boo#1258671)
- Fix handling of disconnected sessions for
per_listener_settings true - Check return values of openssl *_get_ex_data() and *_set_ex_data() to prevent possible crash. This could occur only in extremely unlikely situations
- Check return value of openssl ASN1_string_[get0_]data() functions for NULL. This prevents a crash in case of incorrect certificate handling in openssl
- Fix potential crash on startup if a malicious/corrupt persistence file from mosquitto 1.5 or earlier is loaded
- Limit auto_id_prefix to 50 characters
- Fix handling of disconnected sessions for
-
Update to version 2.0.22 Broker
- Bridge: Fix idle_timeout never occurring for lazy bridges.
- Fix case where max_queued_messages = 0 was not treated as unlimited.
- Fix --version exit code and output.
- Fix crash on receiving a $CONTROL message over a bridge, if per_listener_settings is set true and the bridge is carrying out topic remapping.
- Fix incorrect reference clock being selected on startup on Linux. Closes #3238.
- Fix reporting of client disconnections being incorrectly attributed to "out of memory".
- Fix compilation when using WITH_OLD_KEEPALIVE.
- Fix problems with secure websockets.
- Fix crash on exit when using WITH_EPOLL=no.
- Fix clients being incorrectly expired when they have keepalive == max_keepalive. Closes #3226, #3286. Dynamic security plugin
- Fix mismatch memory free when saving config which caused memory tracking to be incorrect. Client library
- Fix C++ symbols being removed when compiled with link time optimisation.
- TLS error handling was incorrectly setting a protocol error for non-TLS errors. This would cause the mosquitto_loop_start() thread to exit if no broker was available on the first connection attempt. This has been fixed. Closes #3258.
- Fix linker errors on some architectures using cmake.
-
Update to version 2.0.21 Broker
- Fix clients sending a RESERVED packet not being quickly disconnected.
- Fix bind_interface producing an error when used with an interface that has an IPv6 link-local address and no other IPv6 addresses.
- Fix mismatched wrapped/unwrapped memory alloc/free in properties.
- Fix allow_anonymous false not being applied in local only mode.
- Add retain_expiry_interval option to fix expired retained message not being removed from memory if they are not subscribed to.
- Produce an error if invalid combinations of cafile/capath/certfile/keyfile are used.
- Backport keepalive checking from develop to fix problems in current implementation. Client library
- Fix potential deadlock in mosquitto_sub if -W is used. Apps
- mosquitto_ctrl dynsec now also allows -i to specify a clientid as well as -c. This matches the documentation which states -i. Tests
- Fix 08-ssl-connect-cert-auth-expired and 08-ssl-connect-cert-auth-revoked tests when under load.
-
systemd service: Wait till the network got setup to avoid startup failure.
- Record
openSUSE-SU-2026:20260-1- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-318-CVE-2024-3935 No score
CVE-2024-3935 in mosquitto - Patched by Root
Root has patched CVE-2024-3935 in the mosquitto package for Root:Alpine:3.18. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-318-CVE-2024-3935- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-319-CVE-2024-3935 No score
CVE-2024-3935 in mosquitto - Patched by Root
Root has patched CVE-2024-3935 in the mosquitto package for Root:Alpine:3.19. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-319-CVE-2024-3935- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-320-CVE-2024-3935 No score
CVE-2024-3935 in mosquitto - Patched by Root
Root has patched CVE-2024-3935 in the mosquitto package for Root:Alpine:3.20. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-320-CVE-2024-3935- Updated
- 2026-11-02
OSVUSN-7441-1 No score
mosquitto vulnerabilities
It was discovered that Eclipse Mosquitto client incorrectly handled memory when receiving a SUBACK packet. An attacker with a malicious broker could possibly use this issue to execute arbitrary code or cause a denial of service. (CVE-2024-10525)
Xiangpu Song discovered that Eclipse Mosquitto broker did not properly manage memory under certain circumstances. A malicious client with a remote connection could possibly use this issue to cause the broker to crash resulting in a denial of service, or another unspecified impact. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-3935)
- Record
USN-7441-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mosquittoDebian:12 |
before 2.0.11-1.2+deb12u2, plus listed versions 2.0.11-1.22.0.11-1.2+deb12u1 |
2.0.11-1.2+deb12u2 |
mosquittoDebian:13 |
before 2.0.20-1 | 2.0.20-1 |
mosquittoDebian:14 |
before 2.0.20-1 | 2.0.20-1 |
mosquittoDebian:11 From an advisory covering 2 CVEs |
before 2.0.11-1+deb11u2, plus listed versions 2.0.11-12.0.11-1+deb11u1 |
2.0.11-1+deb11u2 |
mosquittoopenEuler:22.03-LTS-SP3 From an advisory covering 2 CVEs |
before 2.0.20-1.oe2203sp3 | 2.0.20-1.oe2203sp3 |
mosquittoopenEuler:22.03-LTS-SP1 From an advisory covering 2 CVEs |
before 2.0.20-1.oe2203sp1 | 2.0.20-1.oe2203sp1 |
mosquittoopenEuler:24.03-LTS From an advisory covering 2 CVEs |
before 2.0.20-1.oe2403 | 2.0.20-1.oe2403 |
mosquittoopenEuler:22.03-LTS-SP4 From an advisory covering 2 CVEs |
before 2.0.20-1.oe2203sp4 | 2.0.20-1.oe2203sp4 |
mosquittoRoot:Alpine:3.18 |
before 2.0.18-r00071 | 2.0.18-r000712.0.18-r000722.0.18-r000732.0.18-r000742.0.18-r00075 |
rootio-mosquittoRoot:Alpine:3.18 |
before 2.0.18-r00071 | 2.0.18-r000712.0.18-r000722.0.18-r000732.0.18-r000742.0.18-r00075 |
Show 14 moreShow less
| Package | Affected | Fixed |
|---|---|---|
mosquittoRoot:Alpine:3.19 |
before 2.0.18-r00071 | 2.0.18-r000712.0.18-r000732.0.18-r000742.0.18-r000722.0.18-r00075 |
rootio-mosquittoRoot:Alpine:3.19 |
before 2.0.18-r00071 | 2.0.18-r000712.0.18-r000732.0.18-r000742.0.18-r000722.0.18-r00075 |
mosquittoRoot:Alpine:3.20 |
before 2.0.18-r00071 | 2.0.18-r000712.0.18-r000732.0.18-r000742.0.18-r000722.0.18-r00075 |
rootio-mosquittoRoot:Alpine:3.20 |
before 2.0.18-r00071 | 2.0.18-r000712.0.18-r000732.0.18-r000742.0.18-r000722.0.18-r00075 |
mosquittoUbuntu:22.04:LTS |
before 2.0.11-1ubuntu1.2, plus listed versions 2.0.11-12.0.11-1build12.0.11-1ubuntu12.0.11-1ubuntu1.1 |
2.0.11-1ubuntu1.2 |
mosquittoUbuntu:Pro:24.04:LTS |
before 2.0.18-1ubuntu0.1~esm1, plus listed versions 2.0.18-12.0.18-1build12.0.18-1build22.0.18-1build3 |
2.0.18-1ubuntu0.1~esm1 |
mosquittoUbuntu:Pro:14.04:LTS From an advisory covering 2 CVEs |
before 0.15-2+deb7u3ubuntu0.1+esm1, plus listed versions 0.15-2ubuntu10.15-2ubuntu1.10.15-2ubuntu1.20.15-2+deb7u3ubuntu0.1 |
0.15-2+deb7u3ubuntu0.1+esm1 |
mosquittoUbuntu:Pro:16.04:LTS From an advisory covering 2 CVEs |
before 1.4.8-1ubuntu0.16.04.7+esm2, plus listed versions 1.4.3-11.4.4-11.4.7-11.4.8-11.4.8-1build1 Show 8 moreShow less1.4.8-1ubuntu0.16.04.11.4.8-1ubuntu0.16.04.21.4.8-1ubuntu0.16.04.31.4.8-1ubuntu0.16.04.41.4.8-1ubuntu0.16.04.51.4.8-1ubuntu0.16.04.61.4.8-1ubuntu0.16.04.71.4.8-1ubuntu0.16.04.7+esm1 |
1.4.8-1ubuntu0.16.04.7+esm2 |
mosquittoUbuntu:Pro:18.04:LTS From an advisory covering 2 CVEs |
before 1.4.15-2ubuntu0.18.04.3+esm2, plus listed versions 1.4.12-11.4.14-11.4.14-21.4.14-2build11.4.15-1 Show 5 moreShow less1.4.15-21.4.15-2ubuntu0.18.04.11.4.15-2ubuntu0.18.04.21.4.15-2ubuntu0.18.04.31.4.15-2ubuntu0.18.04.3+esm1 |
1.4.15-2ubuntu0.18.04.3+esm2 |
mosquittoUbuntu:Pro:20.04:LTS From an advisory covering 2 CVEs |
before 1.6.9-1ubuntu0.1~esm2, plus listed versions 1.6.6-11.6.7-11.6.8-11.6.8-21.6.9-1~build11.6.9-11.6.9-1ubuntu0.1~esm1 |
1.6.9-1ubuntu0.1~esm2 |
mosquittoUbuntu:22.04:LTS From an advisory covering 2 CVEs |
before 2.0.11-1ubuntu1.2, plus listed versions 2.0.11-12.0.11-1build12.0.11-1ubuntu12.0.11-1ubuntu1.1 |
2.0.11-1ubuntu1.2 |
mosquittoUbuntu:Pro:24.04:LTS From an advisory covering 2 CVEs |
before 2.0.18-1ubuntu0.1~esm1, plus listed versions 2.0.18-12.0.18-1build12.0.18-1build22.0.18-1build3 |
2.0.18-1ubuntu0.1~esm1 |
mosquittoopenSUSE:Tumbleweed |
before 2.0.21-2.1 | 2.0.21-2.1 |
mosquittoopenSUSE:Leap 16.0 From an advisory covering 2 CVEs |
before 2.0.23-bp160.1.1 | 2.0.23-bp160.1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-3935 is a medium vulnerability (CVSS 6.0) in Eclipse Mosquitto, published October 30, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.75%, the 55th percentile. Fixed in mosquitto 2.0.11-1.2+deb12u2.
References
gitlab.eclipse.org/security/vulnerability-reports/-/issues/197
mosquitto.org/blog/2024/10/version-2-0-19-released
github.com/eclipse-mosquitto/mosquitto/commit/ae7a804dadac8f2aaedb24336df8496a9680fda9
lists.debian.org/debian-lts-announce/2025/02/msg00022.html
nvd.nist.gov/vuln/detail/CVE-2024-3935
github.com/advisories/GHSA-r5mw-c5jc-r788
Show 18 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3935.json
github.com/eclipse/mosquitto
security-tracker.debian.org/tracker/CVE-2024-3935
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2343
nvd.nist.gov/vuln/detail/CVE-2024-10525
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2344
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2345
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-2346
ubuntu.com/security/CVE-2024-3935
cve.org/CVERecord?id=CVE-2024-3935
ubuntu.com/security/notices/USN-7441-1
ubuntu.com/security/CVE-2024-10525
lists.opensuse.org/archives/list/[email protected]/thread/ZVFEGLDJBY7EABGWWD3F2MDZ223VAMQ6
suse.com/security/cve/CVE-2024-3935
bugzilla.suse.com/1232635
bugzilla.suse.com/1232636
bugzilla.suse.com/1258671
suse.com/security/cve/CVE-2024-10525