SecurityOnlineDo Son
Mongoose 7.24 fixes heap overflow enabling remote code execution
Cesanta released Mongoose 7.24 to fix seven vulnerabilities in its embedded networking library. The most serious is a heap overflow in the MIP built‑in TCP/IP stack that could allow remote code execution without authentication (CVSS 9.8). ZDI (Trend Micro’s Zero Day Initiative) reported the flaw, and Cesanta says no CVE IDs have been assigned yet. The other issues include a pre‑auth WebSocket frame injection vulnerability (CVSS 9.3) and several TLS and parsing bugs. Most of the flaws require no login and may crash or leak memory on 32‑bit systems; exploitation in the wild has not been confirmed.
The vulnerabilities affect Mongoose 7.23 and earlier, with the IP SAN bypass impacting 7.19 through 7.23. The heap overflow occurs in read_conn(), part of the MIP TCP/IP stack, where a TCP FIN packet carrying data bypasses the buffer resize check, allowing data to be copied past the end of a heap buffer. The WebSocket issue on 32‑bit platforms truncates 64‑bit payload lengths, enabling pre‑authentication message injection and, on some control dashboards, full control without login.
TLS/parsing bugs include an out‑of‑bounds read during TLS handshake from a zero month timestamp, oversized ECDSA signature lengths, truncated ClientHello extensions causing heap reads, IPv6 extension‑header checksums, and an IP SAN mismatch in TLS.
Devices running Mongoose in embedded firmware should upgrade to 7.24 and rebuild firmware. Vendor guidance covers identifying affected builds, shipping updates for devices exposing MIP, WebSocket or TLS services, and limiting network access to embedded management interfaces. Device owners are advised to confirm embeddings with vendors and apply updates promptly, as fixes require device firmware rebuilds.