{"id":"CVE-2026-141511","aliases":["GHSA-94qh-77cf-mpqr"],"url":"https://o3.security/vulnerability/CVE-2026-141511","summary":"Mongoose: Out-of-Bounds Read in mg_mqtt_next_topic() Leading to Denial of Service","details":"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.","published":"2026-12-01T20:33:57.713Z","modified":"2026-12-02T21:01:46.672386462Z","cvss":null,"epss":{"score":0.00725,"percentile":0.55344,"asOf":"2026-12-02"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[],"fix":{"url":"https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71","label":"cesanta/mongoose@a9df523"},"references":[{"type":"WEB","url":"https://github.com/cesanta/mongoose/releases/tag/7.22"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141511.json"},{"type":"ADVISORY","url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-94qh-77cf-mpqr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-141511"},{"type":"FIX","url":"https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71"},{"type":"FIX","url":"https://github.com/cesanta/mongoose/pull/3611"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-02T21:01:46.672386462Z"}}