Skip to content
DoS Advisory Beginner CVE-2017-2893

Cesanta Mongoose MQTT SUBSCRIBE Command Denial Of Service

An out-of-order MQTT SUBSCRIBE packet causes a NULL pointer dereference in the Mongoose MQTT broker, crashing the server. An attacker can send a crafted packet over the network to cause denial of service.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

Medium 6.8 View original

An exploitable NULL pointer dereference vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6.8. An MQTT SUBSCRIBE packet can cause a NULL pointer dereference leading to server crash and denial of service.

Aleksandar Nikolic, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The MQTT broker does not validate that a session exists before handling a SUBSCRIBE packet, so it dereferences a NULL user_data pointer.

What the attacker needed

Network access to the MQTT broker

How it was found

  1. Send an MQTT SUBSCRIBE packet to the server without first sending a CONNECT packet.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A NULL pointer dereference happens when a program tries to use a memory address that points to nothing (zero). In this case, the MQTT server expects a client to first send a CONNECT message, but if it receives a SUBSCRIBE message before that, it tries to use a pointer that was never set up, causing the server to crash. This means anyone who can send network packets to the server can make it stop working.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Aleksandar Nikolic

View all

147 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.