Eclipse Mosquitto
Don't miss out!
Thousands of developers use stack.watch to stay informed.Get an email whenever new security vulnerabilities are reported in Eclipse Mosquitto.
By the Year
In 2026 there have been 7 vulnerabilities in Eclipse Mosquitto with an average score of 8.7 out of ten. Mosquitto did not have any published security vulnerabilities last year. That is, 7 more vulnerabilities have already been reported in 2026 as compared to last year.
| Year | Vulnerabilities | Average Score |
|---|---|---|
| 2026 | 7 | 8.65 |
| 2025 | 0 | 0.00 |
| 2024 | 3 | 7.50 |
| 2023 | 4 | 6.95 |
| 2022 | 0 | 0.00 |
| 2021 | 5 | 6.45 |
| 2020 | 0 | 0.00 |
| 2019 | 6 | 6.92 |
| 2018 | 2 | 7.50 |
It may take a day or so for new Mosquitto vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.
Recent Eclipse Mosquitto Security Vulnerabilities
Mosquitto 2.1.2 MQTT v5 WillDelay Suppression Vulnerability
CVE-2026-126763
- November 18, 2026
In Eclipse Mosquitto versions 1.6 to 2.0.22 and 2.1.0 to 2.1.2, an MQTT v5.0 client connecting with a will-delay-interval that subsequently disconnects with a shorter interval causes all delayed wills to be suppressed.
Integer Overflow or Wraparound
Eclipse Mosquitto 2.1.0-2.1.2 mosquitto_ctrl crash via hostile server
CVE-2026-129149
- November 18, 2026
In Eclipse Mosquitto versions 2.1.0 to 2.1.2, using the mosquitto_ctrl utility in interactive shell mode to interact with a malicious server could result in a crash of the utility if the server sent a hostile response.
NULL Pointer Dereference
Mosquitto 2.1.0-2.1.2 mosquitto_ctrl DoS via nonstring error
CVE-2026-126706
- November 18, 2026
In Eclipse Mosquitto versions 2.1.0 to 2.1.2, the mosquitto_ctrl utility would crash if attempting to interact with a hostile broker and the broker sent a non-string "error" value.
NULL Pointer Dereference
Eclipse Mosquitto 2.1-2.1.2 WebSocket Stack Buffer OOB Write/Info Leak
CVE-2026-110486
9.8 - Critical
- November 18, 2026
In Eclipse Mosquitto versions 2.1 through 2.1.2, a listener configured with `protocol websockets` mishandles empty WebSocket data frames. `net__read_ws()` in `lib/net_ws.c` returns the number of framing bytes consumed (the 4 masking-key bytes) for a data frame with a zero-length payload, without writing any bytes to the callers buffer. The MQTT packet reader in `packet__read_single()` (`lib/packet_mosq.c`) trusts that return value as a payload byte count. A remote client can therefore advance the read position over an uninitialised heap allocation, causing the broker to process and forward uninitialised heap memory (information disclosure, including heap and libc pointers), and can underflow the unsigned `to_process` counter so that subsequent attacker-controlled frame data is written past the end of the allocation (heap out-of-bounds write). The out-of-bounds write is reachable from the CONNECT packet before any authentication check, so an unauthenticated client can corrupt the heap and crash the broker even when `allow_anonymous false` is set. Combining the disclosure and the write allows remote code execution as the brokers user by any client able to establish a session.
Memory Corruption
Mosquitto 2.1.0-2.1.2 PROXY v2 Listener SSL Spoofing
CVE-2026-129705
- November 18, 2026
In Eclipse Mosquitto versions 2.1.0 to 2.1.2, a broker with a listener that is configured to use the PROXY protocol v2 is vulnerable to an untrusted proxy providing details that cause the broker to accept fake SSL information. This can be mitigated by following the documented requirements for PROXY listeners: It is very important that only trusted proxies are allowed to connect to any listener using the PROXY protocol, and that clients are not allowed to connect to the listener at all.
Authentication Bypass by Spoofing
Eclipse Mosquitto 2.0.02.1.2 Password Hash Bypass (sha512pbkdf2)
CVE-2026-126708
- November 18, 2026
In Eclipse Mosquitto versions 2.0.0 to 2.0.22 and 2.1.0 to 2.1.2, the return value of password hash functions for sha512-pbkdf2 and legacy sha512 were not checked. Starting with OpenSSL 4.0, sha512-pbkdf2 hashing will fail when using the FIPS provider for passwords shorter than 8 characters. This has the effect that newly created passwords would match against any other password with fewer than 8 characters.
Unchecked Return Value
Eclipse Mosquitto libmosquitto <=2.1.2 allows >65535byte Will payload
CVE-2026-130491
7.5 - High
- November 18, 2026
In Eclipse versions 1.5-1.6.13, 2.0.0-2.0.22 and 2.1.0-2.1.2, the client library libmosquitto does not reject Will messages with payloads greater than 65535 bytes when calling `mosquitto_will_set()` or `mosquitto_will_set_v5()`. This results in up to 65535 bytes of uninitialised heap memory being transmitted as the Will. This can be mitigated by only passing payloads with a maximum length of 65535 bytes.
Use of Uninitialized Resource
Eclipse Mosquitto libmosquitto OOB read via malformed SUBACK (1.3.2-2.0.18)
CVE-2024-10525
- October 30, 2024
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.
Heap-based Buffer Overflow
Double Free in Eclipse Mosquitto 2.0.0-2.0.18 via topic remapping on bridge
CVE-2024-3935
- October 30, 2024
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.
Double-free
Eclipse Mosquitto 2.0.18a: heap-use-after-free via crafted MQTT packets
CVE-2024-8376
7.5 - High
- October 11, 2024
In Eclipse Mosquitto up to version 2.0.18a, an attacker can achieve memory leaking, segmentation fault or heap-use-after-free by sending specific sequences of "CONNECT", "DISCONNECT", "SUBSCRIBE", "UNSUBSCRIBE" and "PUBLISH" packets.
Dangling pointer
Denial of Service via Excessive CPU in Eclipse Mosquitto 2.0.5 or earlier
CVE-2023-5632
7.5 - High
- October 18, 2023
In Eclipse Mosquito before and including 2.0.5, establishing a connection to the mosquitto server without sending data causes the EPOLLOUT event to be added, which results excessive CPU consumption. This could be used by a malicious actor to perform denial of service type attack. This issue is fixed in 2.0.6
Excessive Iteration
Mosquitto <2.0.16 Memory Leak on MQTTv5 CONNECT with Invalid Will Property
CVE-2023-3592
7.5 - High
- October 02, 2023
In Mosquitto before 2.0.16, a memory leak occurs when clients send v5 CONNECT packets with a will message that contains invalid property types.
Memory Leak
Excessive memory allocation in Mosquitto <2.0.16 via non-CONNECT packets
CVE-2023-0809
5.3 - Medium
- October 02, 2023
In Mosquitto before 2.0.16, excessive memory is allocated based on malicious initial packets that are not CONNECT packets.
Allocation of Resources Without Limits or Throttling
Eclipse Mosquitto 1.3.2-2.0.15 QoS2 Duplicate ID Memory Leak
CVE-2023-28366
7.5 - High
- September 01, 2023
The broker in Eclipse Mosquitto 1.3.2 through 2.x before 2.0.16 has a memory leak that can be abused remotely when a client sends many QoS 2 messages with duplicate message IDs, and fails to respond to PUBREC commands. This occurs because of mishandling of EAGAIN from the libc send function.
Memory Leak
In versions 1.6 to 2.0.11 of Eclipse Mosquitto
CVE-2021-41039
7.5 - High
- December 01, 2021
In versions 1.6 to 2.0.11 of Eclipse Mosquitto, an MQTT v5 client connecting with a large number of user-property properties could cause excessive CPU usage, leading to a loss of performance and possible denial of service.
In Eclipse Mosquitto versions 2.0 to 2.0.11, when using the dynamic security plugin, if the ability for a client to make subscriptions on a topic is revoked when a durable client is offline, then existing subscriptions for
CVE-2021-34434
5.3 - Medium
- August 30, 2021
In Eclipse Mosquitto versions 2.0 to 2.0.11, when using the dynamic security plugin, if the ability for a client to make subscriptions on a topic is revoked when a durable client is offline, then existing subscriptions for that client are not revoked.
AuthZ
In Eclipse Mosquitto versions 2.0.7 and earlier
CVE-2021-34432
- July 27, 2021
In Eclipse Mosquitto versions 2.0.7 and earlier, the server will crash if the client tries to send a PUBLISH packet with topic length = 0.
Improper Input Validation
In Eclipse Mosquitto version 1.6 to 2.0.10, if an authenticated client
CVE-2021-34431
6.5 - Medium
- July 22, 2021
In Eclipse Mosquitto version 1.6 to 2.0.10, if an authenticated client that had connected with MQTT v5 sent a crafted CONNECT message to the broker a memory leak would occur, which could be used to provide a DoS attack against the broker.
Memory Leak
In Eclipse Mosquitto version 2.0.0 to 2.0.9, if an authenticated client
CVE-2021-28166
6.5 - Medium
- April 07, 2021
In Eclipse Mosquitto version 2.0.0 to 2.0.9, if an authenticated client that had connected with MQTT v5 sent a crafted CONNACK message to the broker, a NULL pointer dereference would occur.
NULL Pointer Dereference
In Eclipse Mosquitto 1.5.0 to 1.6.5 inclusive, if a malicious MQTT client sends a SUBSCRIBE packet containing a topic
CVE-2019-11779
6.5 - Medium
- September 19, 2019
In Eclipse Mosquitto 1.5.0 to 1.6.5 inclusive, if a malicious MQTT client sends a SUBSCRIBE packet containing a topic that consists of approximately 65400 or more '/' characters, i.e. the topic hierarchy separator, then a stack overflow will occur.
Stack Exhaustion
If an MQTT v5 client connects to Eclipse Mosquitto versions 1.6.0 to 1.6.4 inclusive, sets a last will and testament, sets a will delay interval, sets a session expiry interval, and the will delay interval is set longer than the session expiry interval, then a use after free error occurs
CVE-2019-11778
5.4 - Medium
- September 18, 2019
If an MQTT v5 client connects to Eclipse Mosquitto versions 1.6.0 to 1.6.4 inclusive, sets a last will and testament, sets a will delay interval, sets a session expiry interval, and the will delay interval is set longer than the session expiry interval, then a use after free error occurs, which has the potential to cause a crash in some situations.
Dangling pointer
In Eclipse Mosquitto version
CVE-2017-7655
- March 27, 2019
In Eclipse Mosquitto version from 1.0 to 1.4.15, a Null Dereference vulnerability was found in the Mosquitto library which could lead to crashes for those applications using the library.
NULL Pointer Dereference
When Eclipse Mosquitto version 1.0 to 1.5.5 (inclusive) is configured to use a password file for authentication
CVE-2018-12551
8.1 - High
- March 27, 2019
When Eclipse Mosquitto version 1.0 to 1.5.5 (inclusive) is configured to use a password file for authentication, any malformed data in the password file will be treated as valid. This typically means that the malformed data becomes a username and no password. If this occurs, clients can circumvent authentication and get access to the broker by using the malformed username. In particular, a blank line will be treated as a valid empty username. Other security measures are unaffected. Users who have only used the mosquitto_passwd utility to create and modify their password files are unaffected by this vulnerability.
authentification
When Eclipse Mosquitto version 1.0 to 1.5.5 (inclusive) is configured to use an ACL file, and
CVE-2018-12550
8.1 - High
- March 27, 2019
When Eclipse Mosquitto version 1.0 to 1.5.5 (inclusive) is configured to use an ACL file, and that ACL file is empty, or contains only comments or blank lines, then Mosquitto will treat this as though no ACL file has been defined and use a default allow policy. The new behaviour is to have an empty ACL file mean that all access is denied, which is not a useful configuration but is not unexpected.
In Eclipse Mosquitto version 1.0 to 1.5.5 (inclusive) when a client publishes a retained message to a topic, then has its access to
CVE-2018-12546
6.5 - Medium
- March 27, 2019
In Eclipse Mosquitto version 1.0 to 1.5.5 (inclusive) when a client publishes a retained message to a topic, then has its access to that topic revoked, the retained message will still be published to clients that subscribe to that topic in the future. In some applications this may result in clients being able cause effects that would otherwise not be allowed.
Incorrect Permission Assignment for Critical Resource
Eclipse Mosquitto 1.5.x before 1.5.5
CVE-2018-20145
- December 13, 2018
Eclipse Mosquitto 1.5.x before 1.5.5 allows ACL bypass: if the option per_listener_settings was set to true, and the default listener was in use, and the default listener specified an acl_file, then the acl file was being ignored.
In Eclipse Mosquitto versions 1.5 to 1.5.2 inclusive, if a message is published to Mosquitto
CVE-2018-12543
7.5 - High
- November 15, 2018
In Eclipse Mosquitto versions 1.5 to 1.5.2 inclusive, if a message is published to Mosquitto that has a topic starting with $, but that is not $SYS, e.g. $test/test, then an assert is triggered that should otherwise not be reachable and Mosquitto will exit.
Improper Input Validation
In Mosquitto before 1.4.12, pattern based ACLs can be bypassed by clients that set their username/client id to '#' or '+'
CVE-2017-7650
- September 11, 2017
In Mosquitto before 1.4.12, pattern based ACLs can be bypassed by clients that set their username/client id to '#' or '+'. This allows locally or remotely connected clients to access MQTT topics that they do have the rights to. The same issue may be present in third party authentication/access control plugins for Mosquitto.
Stay on top of Security Vulnerabilities
Want an email whenever new vulnerabilities are published for Eclipse Mosquitto or by Eclipse? Click the Watch button to subscribe.