CVE-2021-34432 Denial of service in Eclipse Mosquitto

High 7.5 Published Updated

A remote attacker can crash the Eclipse Mosquitto MQTT broker by sending a PUBLISH packet with a zero-length topic.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-34432?

CVE-2021-34432 is a high-severity denial of service vulnerability in The Eclipse Foundation Eclipse Mosquitto, published on 27 Jul 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2021-34432?

It affects 1 product.

Products include Eclipse Mosquitto.

How do I fix CVE-2021-34432?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-34432 being exploited?

There is no known exploitation of CVE-2021-34432 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2021-34432, DEBIAN-CVE-2021-34432, GHSA-9972-xmxv-v66x, OESA-2022-1564, OESA-2022-2053.

Is CVE-2021-34432 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free