Security mailing lists by PureSourceCode

CVE-2026-141511

HIGH 8.7CVSS 4.0

Mongoose: 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD cesanta mongoose
cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*
< 7.22 7.22
CVE List cesanta mongoose = < 7.22

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.