{"affected":[{"product":"mongoose","source":"CNA: GitHub_M","vendor":"cesanta","versions":[{"status":"affected","version":"< 7.22"}]}],"cveId":"CVE-2026-141511","cwes":["CWE-125"],"description":"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.7,"severity":"high","source":"CNA: GitHub_M","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","version":"4.0"}],"modifiedAt":1796157997254,"publishedAt":1796157237713,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-94qh-77cf-mpqr"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/cesanta/mongoose/pull/3611"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/cesanta/mongoose/releases/tag/7.22"}],"remediation":[],"revision":"1ad4ff7d6804d0ecd56f38edc5ba207c5730abac211b5e95ae69b56070e2074a","sources":[{"modifiedAt":1796157997254,"name":"CNA: GitHub_M","retrievedAt":1796159452895,"url":"https://www.cve.org/CVERecord?id=CVE-2026-141511"}],"ssvc":{"assessedAt":1796157974718,"automatable":"yes","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"Mongoose: Out-of-Bounds Read in mg_mqtt_next_topic() Leading to Denial of Service","updatedAt":1796159452895}