
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-141472 is a pre-authentication heap out-of-bounds read vulnerability in Cesanta Mongoose's built-in TLS ClientHello extension parser. It affects all Mongoose versions prior to 7.24 when compiled with the MG_TLS_BUILTIN backend. A remote unauthenticated attacker can send a malformed TLS ClientHello message to crash the Mongoose worker or process, resulting in denial of service. The vulnerability was published on November 20, 2026, and fixed in version 7.24. It carries a CVSS v4.0 base score of 8.7 (High) (GitHub Advisory).
The root cause is an out-of-bounds read (CWE-125) in mg_tls_server_recv_hello() located in src/tls_builtin.c and the amalgamated mongoose.c. During TLS handshake parsing, the function iterates over the ClientHello extensions block and reads a 2-byte extension length field (MG_LOAD_BE16(ext + j + 2)) before verifying that at least four bytes remain for the extension type and length header. If the extensions block ends with fewer than four bytes, the read occurs beyond the allocated receive buffer. Additionally, nested key-share length reads within the same function lack equivalent minimum-structure validation. The fix in commit 22a94c0 adds an explicit if ((ext_len - j) < 4) goto fail; guard before the length read, along with additional bounds checks for key-share parsing (GitHub Advisory, Fix Commit).
Successful exploitation causes a heap out-of-bounds read during the TLS handshake, before any application-level authentication occurs. This terminates the Mongoose worker thread or the entire process, resulting in denial of service. Embedded and constrained-device deployments using the built-in TLS stack are particularly at risk, as process restart mechanisms may not be present. No confidentiality or integrity impact has been demonstrated — the vulnerability is limited to availability (GitHub Advisory).
A public proof-of-concept (PoC) exploit written in C is included in the GitHub Security Advisory, demonstrating the crash via AddressSanitizer on a loopback connection. The PoC requires no authentication, no user interaction, and no special privileges — only network reachability to a Mongoose TLS listener. No in-the-wild exploitation has been observed as of the time of publication. The EPSS score is 0.0, and the vulnerability is not listed in the CISA KEV catalog (GitHub Advisory).
MG_TLS_BUILTIN enabled (versions ≤ 7.23) by scanning for TLS listeners on expected ports using tools like Shodan, Censys, or nmap.0x00 0x00), providing an incomplete extension type+length header. The cipher suites section is padded to 460 bytes to push the extensions to the end of the buffer.shutdown(SHUT_WR)).mg_tls_server_recv_hello() reads a 2-byte extension length at ext + j + 2 without first verifying that four bytes remain, causing a heap out-of-bounds read beyond the receive buffer.heap-buffer-overflow READ under ASan; abnormal termination in production builds), resulting in denial of service (GitHub Advisory).not a client hello packet or abrupt connection termination events during TLS handshake; process crash or restart events logged by the OS or supervisor.Upgrade Mongoose to version 7.24 or later, which includes the fix in commit 22a94c0 adding proper bounds checks before extension length reads in mg_tls_server_recv_hello() (Mongoose 7.24 Release, Fix Commit). As interim mitigations: place Mongoose TLS listeners behind a TLS-terminating proxy or load balancer that validates ClientHello messages before forwarding; restrict network access to the TLS listener to trusted clients only; and run Mongoose under a process supervisor (e.g., systemd, supervisord) configured to automatically restart the service after a crash to minimize downtime from repeated attacks.
The vulnerability was reported to Cesanta with AI assistance by researcher mangowithegg and published via GitHub Security Advisory on November 20, 2026. The advisory includes a complete, runnable PoC, which generated attention in vulnerability tracking communities including Cloudflare Radar, VulDB, and CIRCL. No major vendor statements or notable researcher commentary beyond the advisory itself have been identified (GitHub Advisory).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."