CVE-2026-141511
Mongoose is an embedded web server and network library. Prior to …
Mongoose is an embedded web server and network library. Prior to 7.22, the Mongoose MQTT broker tutorial's mg_mqtt_next_topic() function can read two bytes beyond msg->dgram.len when a malformed MQTT SUBSCRIBE packet supplies a topic position that does not leave enough bytes for the topic-length field. Because tutorials/mqtt/mqtt-server/main.c reads that field without validating the complete two-byte access against the datagram boundary, an unauthenticated remote MQTT client can trigger invalid memory access and crash the broker. This issue is fixed in 7.22.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71
- github.com/cesanta/mongoose/pull/3611
- github.com/cesanta/mongoose/releases/tag/7.22
- github.com/cesanta/mongoose/security/advisories/GHSA-94qh-77cf-mpqr
- nvd.nist.gov/vuln/detail/CVE-2026-141511
- cve.org/CVERecord?id=CVE-2026-141511
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.