Broker crash via unchecked null publish topic
Published Jul 27, 2021 · Updated Jul 2, 2026
Denial of service in Eclipse Mosquitto 2.0.7 and earlier allows remote attackers to crash the broker with a zero-length PUBLISH topic. The broker passes the resulting null topic pointer to mosquitto_pub_topic_check(), which accepts it instead of returning MOSQ_ERR_INVAL. Unauthenticated network access to an MQTT listener is sufficient; the demonstrated consequence is broker termination without reported data disclosure or modification.
Summary
What happened
Denial of service in Eclipse Mosquitto 2.0.7 and earlier allows remote attackers to crash the broker with a zero-length PUBLISH topic. The broker passes the resulting null topic pointer to mosquitto_pub_topic_check(), which accepts it instead of returning MOSQ_ERR_INVAL. Unauthenticated network access to an MQTT listener is sufficient; the demonstrated consequence is broker termination without reported data disclosure or modification.
The record
- CVE
- CVE-2021-34432
- Published
- Jul 27, 2021
- Updated
- Jul 2, 2026
- Vendor
- The Eclipse Foundation
- Product
- Eclipse Mosquitto
- Classifications
- CWE-20, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 27, 2021CVE publishedPublication date reported by the CVE source.
- Jul 2, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <=2.0.7
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Zero-length PUBLISH topic proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo