CVE-2026-141511
NVD
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 8.7 (HIGH)
CVSS:4.0Affected & Patched Versions
- mongoose <= 7.21
- mongoose 7.22
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run mongoose and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Dec 1, 2026Published
- Dec 1, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new mongoose CVEsYou are reading CVE-2026-141511. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Dec 5, 2026 05:11 UTC