Every CVE Search/ Get API key

CVE-2024-10525

Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback

7.2 HighFix available

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.

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
Low
Integrity
High
Availability
High

Exploit likelihood

59.2%Up 59.2 points since Oct 31, 2024
90%50%10%1%

What each source reports

CVE List Score used 7.2

Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback

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.

Record
CVE-2024-10525
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-122
Updated
2026-11-02
EUVDEUVD-2024-33469 7.2

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.

Record
EUVD-2024-33469
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-cm54-mprw-5279 7.2

In Eclipse Mosquitto, from version 1.3.2 through 2.0.18, if a malicious broker sends a crafted...

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.

Record
GHSA-cm54-mprw-5279
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/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
9.1 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness
CWE-122, CWE-787
Updated
2026-11-02
NVD 7.2

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.

Record
CVE-2024-10525
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/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
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-122, CWE-787
Updated
2026-11-02
OSVBELL-CVE-2024-10525 9.8
Record
BELL-CVE-2024-10525
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV 7.2

Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback

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.

Record
CVE-2024-10525
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-122
Updated
2026-11-02
Show 10 moreShow less
OSVDEBIAN-CVE-2024-10525 9.8

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.

Record
DEBIAN-CVE-2024-10525
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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-10525 7.2

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.

Record
UBUNTU-CVE-2024-10525
CVSS 4.0
7.2 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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
  • 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-10525 No score

CVE-2024-10525 in mosquitto - Patched by Root

Root has patched CVE-2024-10525 in the mosquitto package for Root:Alpine:3.18. Multiple fixed versions available.

Record
ROOT-OS-ALPINE-318-CVE-2024-10525
Updated
2026-11-02
OSVROOT-OS-ALPINE-320-CVE-2024-10525 No score

CVE-2024-10525 in mosquitto - Patched by Root

Root has patched CVE-2024-10525 in the mosquitto package for Root:Alpine:3.20. Multiple fixed versions available.

Record
ROOT-OS-ALPINE-320-CVE-2024-10525
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

Affected packages
PackageAffectedFixed
mosquitto
Alpaquita:23
2.0.15-r1 and later None known
mosquitto
Alpaquita:stream
2.0.15-r3 up to 2.0.19-r0
2.0.19-r0
mosquitto
Debian: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
mosquitto
Debian:13
before 2.0.20-1
2.0.20-1
mosquitto
Debian:14
before 2.0.20-1
2.0.20-1
mosquitto
Debian: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
mosquitto
openEuler:22.03-LTS-SP3
From an advisory covering 2 CVEs
before 2.0.20-1.oe2203sp3
2.0.20-1.oe2203sp3
mosquitto
openEuler:22.03-LTS-SP1
From an advisory covering 2 CVEs
before 2.0.20-1.oe2203sp1
2.0.20-1.oe2203sp1
mosquitto
openEuler:24.03-LTS
From an advisory covering 2 CVEs
before 2.0.20-1.oe2403
2.0.20-1.oe2403
mosquitto
openEuler:22.03-LTS-SP4
From an advisory covering 2 CVEs
before 2.0.20-1.oe2203sp4
2.0.20-1.oe2203sp4
Show 17 moreShow less
Affected packages
PackageAffectedFixed
mosquitto
Root: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-mosquitto
Root:Alpine:3.18
before 2.0.18-r00071
2.0.18-r000712.0.18-r000722.0.18-r000732.0.18-r000742.0.18-r00075
mosquitto
Root: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-mosquitto
Root:Alpine:3.20
before 2.0.18-r00071
2.0.18-r000712.0.18-r000732.0.18-r000742.0.18-r000722.0.18-r00075
mosquitto
Ubuntu:Pro:14.04:LTS
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
mosquitto
Ubuntu:Pro:16.04:LTS
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 less
1.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
mosquitto
Ubuntu:Pro:18.04:LTS
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 less
1.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
mosquitto
Ubuntu:Pro:20.04:LTS
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
mosquitto
Ubuntu: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
mosquitto
Ubuntu: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
mosquitto
Ubuntu: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
mosquitto
Ubuntu: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 less
1.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
mosquitto
Ubuntu: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 less
1.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
mosquitto
Ubuntu: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
mosquitto
Ubuntu: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
mosquitto
Ubuntu: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
mosquitto
openSUSE:Leap 16.0
From an advisory covering 2 CVEs
before 2.0.23-bp160.1.1
2.0.23-bp160.1.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-10525 is a high vulnerability (CVSS 7.2) 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 59.2%, the 99th percentile. Fixed in mosquitto 2.0.19-r0.

References

Show 18 moreShow less
MoveEnter Open