PT-2026-165229
CVE-2026-141511
·
Published
2026-12-01
·
Updated
2026-12-02
Description by
CVSS 4.0
8.7
HighMetricsAV: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
Name of the Vulnerable Software and Affected Versions
Mongoose versions prior to 7.22
Description
The
mg mqtt next topic() function in the MQTT broker tutorial can read two bytes beyond msg->dgram.len when processing a malformed MQTT SUBSCRIBE packet. This occurs because the code in tutorials/mqtt/mqtt-server/main.c fails to validate the two-byte access against the datagram boundary when the topic position does not provide sufficient bytes for the topic-length field. An unauthenticated remote MQTT client can exploit this to cause invalid memory access, resulting in a broker crash.Recommendations
Update to version 7.22.
Found an issue in the description? Have something to add? Feel free to write us 👾