USN-9323-1: Mosquitto vulnerabilities
It was discovered that Mosquitto broker incorrectly handled certain specially crafted input and network packets. A remote attacker could possibly use these issues to cause a denial of service. (CVE-2017-7653, CVE-2017-7654) It was discovered that Mosquitto incorrectly applied a default allow policy when its configured ACL file was empty or contained only comments or blank lines. A remote attacker could possibly use this issue to bypass access restrictions. (CVE-2018-12550) It was discovered that the Mosquitto client library did not reject Will messages with payloads larger than 65535 bytes, which could result in uninitialized memory being sent to the broker. An attacker could possibly use this issue to obtain sensitive information. (CVE-2026-130491)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/libmosquitto0to a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/libmosquittopp0to a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/mosquittoto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/mosquitto-clientsto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/python-mosquittoto a version that resolves this vulnerability.Fixed in Ubuntu Pro
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to the access-control issue?
Mosquitto broker deployments with an ACL file that is empty or contains only comments or blank lines are affected by the default allow behavior. In that configuration, remote attackers may be able to bypass intended access restrictions.
What capabilities does an attacker need for the denial-of-service issues?
The issues can be triggered remotely using specially crafted input or network packets sent to the Mosquitto broker. The provided information does not specify an authentication requirement.
Which applications should be reviewed for the information-disclosure issue?
Applications using the Mosquitto client library should be reviewed, particularly where they can send Will messages. Will-message payloads larger than 65535 bytes may cause uninitialized memory to be sent to the broker.
How can I identify an ACL configuration at risk?
Inspect the configured Mosquitto ACL file. It is at risk if it has no rules because it is empty or consists solely of comments and blank lines.