Out-of-bounds read in Mongoose - CVE-2026-141511
Published: November 18, 2026 / Updated: December 2, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by crashing the Mongoose MQTT broker.
The vulnerability exists due to an out-of-bounds read in mg_mqtt_next_topic() in mqtt-server/main.c when parsing MQTT SUBSCRIBE topic lengths without validating the payload offset against the message boundaries. A remote attacker can send a single malformed MQTT SUBSCRIBE packet over TCP port 1883 to trigger an invalid memory read and crash the broker.