CVE-2026-141511: mongoose Vulnerability

CVE-2026-141511

NVD

Vulnerability Summary

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.
Severity Level
HIGH(8.7)
Published Date
Dec 1, 2026
Last Modified
Dec 1, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.82%Probability
Root Weakness (CWE)
N/A
CVSS v4.0 Base Metrics — Score 8.7 (HIGH)
CVSS:4.0

Affected & Patched Versions

Affected Versions
  • mongoose <= 7.21
Patched Versions
  • mongoose 7.22

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run mongoose and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Dec 1, 2026Published
  • Dec 1, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new mongoose CVEsYou are reading CVE-2026-141511. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 5, 2026 05:11 UTC