{"id":"JLSEC-2026-2425","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-\u003edgram.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.","modified":"2026-12-04T20:00:04.314806Z","published":"2026-12-04T19:49:13.191Z","upstream":["CVE-2026-141511","EUVD-2026-140721"],"database_specific":{"license":"CC-BY-4.0","sources":[{"modified":"2026-12-03T19:56:31.400Z","published":"2026-12-01T21:17:11.497Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-141511","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-141511","database_specific":{"status":"Analyzed"},"affected":{"cesanta:mongoose":["\u003c 7.22"]},"id":"CVE-2026-141511","imported":"2026-12-03T21:20:36.288Z"},{"published":"2026-12-01T20:33:57Z","url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-140721","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-140721","affected":{"Cesanta:Mongoose":["\u003c 7.22"]},"id":"EUVD-2026-140721","imported":"2026-12-03T21:20:36.289Z","modified":"2026-12-01T20:46:37Z"}]},"references":[{"type":"WEB","url":"https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/pull/3611"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/releases/tag/7.22"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-94qh-77cf-mpqr"}],"affected":[{"package":{"name":"Mongoose_jll","ecosystem":"Julia","purl":"pkg:julia/Mongoose_jll?uuid=0a8a3f5b-4c0e-5906-8e29-5b3fee15539c"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"7.23.0+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-2425.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"NVD"},{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"CNA"}]}