CVE-2026-141511
8.7high
Mongoose: Out-of-Bounds Read in mg_mqtt_next_topic() Leading to Denial of Service
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cesanta mongoose | < 7.22 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-141511 changed 2026-12-01 | CVE Terms of Use |