CVE-2026-141511 — Cesanta
Fix: cesanta/mongoose@a9df523CVE-2026-141511 is a Out-of-bounds Read vulnerability. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
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…
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-141511.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
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 Products
mongoosecesantaDetection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Remediation status
The records we use list no fixed release for CVE-2026-141511. Check the upstream advisory for a patched version, and apply the exposure-reduction steps below in the meantime.
Mitigate without a patch
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Red Hat has rated this vulnerability as Important because an unauthenticated remote attacker can exploit it to cause a total loss of service availability without requiring prior authentication or user interaction. If Mongoose is deployed as an MQTT broker, processing a malformed SUBSCRIBE packet leads to an…
Restrict network access to the MQTT server to trusted IP addresses or internal networks using firewalld. To remove public exposure on the standard MQTT port (1883/tcp): ``` firewall-cmd --permanent --zone=public --remove-port=1883/tcp firewall-cmd --reload ``` Caveats: Limiting network exposure prevents untrusted remote clients from interacting with the MQTT service, reducing the attack surface. Warning: Reloading firewall rules reapplies configuration settings and may temporarily disrupt existing network connections.Source: Red Hat security advisory for CVE-2026-141511 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2026-141511 in your dependencies?
Find it across your dependency tree, including transitive dependencies.