CVE-2026-141511
HIGH 8.7CVSS 4.0Mongoose: Out-of-Bounds Read in mg_mqtt_next_topic() Leading to Denial of Service
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
- 1 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-125
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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 |
| CVE List | GitHub_M | CVSS 4.0 | HIGH 8.7 | 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 |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cesanta | mongoosecpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:* |
< 7.22 | 7.22 |
| CVE List | cesanta | mongoose | = < 7.22 |
References
- https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71 · Patch, x_refsource_MISC
- https://github.com/cesanta/mongoose/pull/3611 · Issue Tracking, Patch, x_refsource_MISC
- https://github.com/cesanta/mongoose/releases/tag/7.22 · Release Notes, x_refsource_MISC
- https://github.com/cesanta/mongoose/security/advisories/GHSA-94qh-77cf-mpqr · Vendor Advisory, x_refsource_CONFIRM
History
- 3 Dec 2026 21:56 UTC · NVD: status Awaiting Analysis → Analyzed; affected list changed (1 entry)
- 1 Dec 2026 21:37 UTC · NVD: first stored (published 1 Dec 2026)
- 1 Dec 2026 20:55 UTC · CVE List: updated (other details)
- 1 Dec 2026 20:49 UTC · CVE List: first stored (published 1 Dec 2026)