{"id":"CVE-2026-141511","aliases":["CVE-2026-141511"],"related":[],"kind":"vulnerability","state":"published","title":"Mongoose: Out-of-Bounds Read in mg_mqtt_next_topic() Leading to Denial of Service","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-12-01T20:33:57.713Z","modified":"2026-12-01T20:46:37.254Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"< 7.22","status":"affected"}],"vendor":"cesanta","product":"mongoose","source":"cvelist"}],"references":[{"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-94qh-77cf-mpqr","tags":["x-refsource-confirm"],"sources":["cvelist"]},{"url":"https://github.com/cesanta/mongoose/pull/3611","tags":["x-refsource-misc"],"sources":["cvelist"]},{"url":"https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71","tags":["x-refsource-misc"],"sources":["cvelist"]},{"url":"https://github.com/cesanta/mongoose/releases/tag/7.22","tags":["x-refsource-misc"],"sources":["cvelist"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-12-01T20:46:14.718Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-141511","url":"https://www.cve.org/CVERecord?id=CVE-2026-141511","licence":"CVE Terms of Use","modified":"2026-12-01T20:46:37.254Z"}],"updatedAt":"2026-12-01T20:52:21.447Z"}