Every CVE Search/ Get API key

CVE-2021-34431

In Eclipse Mosquitto version 1.6 to 2.0.10, if an authenticated client that had connected with...

6.5 MediumFix available

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.

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
None
Availability
High

Exploit likelihood

1.11%Up 0.7 points since Jul 23, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

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.

Record
CVE-2021-34431
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
4.0 MediumAV:N/AC:L/Au:S/C:N/I:N/A:P
Weakness
CWE-401
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-34431
Weakness
CWE-401
Updated
2026-11-02
EUVDEUVD-2021-21087 No score

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.

Record
EUVD-2021-21087
Updated
2026-11-03
GitHub AdvisoriesGHSA-j546-3m5x-fx7p No score

In Eclipse Mosquitto version 1.6 to 2.0.10, if an authenticated client that had connected with...

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.

Record
GHSA-j546-3m5x-fx7p
Weakness
CWE-401
Updated
2026-11-02
OSV 6.5

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.

Record
CVE-2021-34431
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-34431 6.5

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.

Record
DEBIAN-CVE-2021-34431
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-34431 6.5

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.

Record
UBUNTU-CVE-2021-34431
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUSN-6492-1 No score

mosquitto vulnerabilities

Kathrin Kleinhammer discovered that Mosquitto incorrectly handled certain inputs. If a user or an automated system were provided with a specially crafted input, a remote attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 20.04 LTS. (CVE-2021-34431)

Zhanxiang Song discovered that Mosquitto incorrectly handled certain inputs. If a user or an automated system were provided with a specially crafted input, a remote attacker could possibly use this issue to cause an authorisation bypass. This issue only affected Ubuntu 22.04 LTS and Ubuntu 23.04. (CVE-2021-34434)

Zhanxiang Song, Bin Yuan, DeQing Zou, and Hai Jin discovered that Mosquitto incorrectly handled certain inputs. If a user or an automated system were provided with a specially crafted input, a remote attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2021-41039)

Zhengjie Du discovered that Mosquitto incorrectly handled certain inputs. If a user or an automated system were provided with a specially crafted input file, a remote attacker could possibly use this issue to cause a denial of service. (CVE-2023-0809)

It was discovered that Mosquitto incorrectly handled certain inputs. If a user or an automated system were provided with a specially crafted input, a remote attacker could possibly use this issue to cause a denial of service. (CVE-2023-3592)

Mischa Bachmann discovered that Mosquitto incorrectly handled certain inputs. If a user or an automated system were provided with a specially crafted input, a remote attacker could possibly use this issue to cause a denial of service. This issue was only fixed in Ubuntu 22.04 LTS and Ubuntu 23.04. (CVE-2023-28366)

Record
USN-6492-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mosquitto
Debian:12
before 2.0.11-1
2.0.11-1
mosquitto
Debian:13
before 2.0.11-1
2.0.11-1
mosquitto
Debian:14
before 2.0.11-1
2.0.11-1
mosquitto
Ubuntu:Pro:20.04:LTS
before 1.6.9-1ubuntu0.1~esm1, plus listed versions
1.6.6-11.6.7-11.6.8-11.6.8-21.6.9-1~build11.6.9-1
1.6.9-1ubuntu0.1~esm1
mosquitto
Ubuntu:Pro:20.04:LTS
From an advisory covering 6 CVEs
before 1.6.9-1ubuntu0.1~esm1, plus listed versions
1.6.6-11.6.7-11.6.8-11.6.8-21.6.9-1~build11.6.9-1
1.6.9-1ubuntu0.1~esm1
mosquitto
Ubuntu:22.04:LTS
From an advisory covering 6 CVEs
before 2.0.11-1ubuntu1.1, plus listed versions
2.0.11-12.0.11-1build12.0.11-1ubuntu1
2.0.11-1ubuntu1.1

History

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

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

In short

CVE-2021-34431 is a medium vulnerability (CVSS 6.5) in Eclipse Mosquitto, published July 22, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.11%, the 66th percentile. Fixed in mosquitto 2.0.11-1.

References

Show 6 moreShow less
MoveEnter Open