Vulnerability DatabaseCVE-2026-141472

CVE-2026-141472: 
NixOS vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Reconnaissance: Identify services running Mongoose with MG_TLS_BUILTIN enabled (versions ≤ 7.23) by scanning for TLS listeners on expected ports using tools like Shodan, Censys, or nmap.
  2. Craft malformed ClientHello: Construct a 512-byte TLS 1.2 ClientHello record where the extensions block declares a length of 2 but contains only two bytes (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.
  3. Connect and send payload: Open a raw TCP connection to the target Mongoose TLS listener and transmit the full 512-byte malformed record, then half-close the connection (shutdown(SHUT_WR)).
  4. Trigger OOB read: The Mongoose server's 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.
  5. Achieve DoS: The out-of-bounds read causes the Mongoose worker or process to crash (detected as heap-buffer-overflow READ under ASan; abnormal termination in production builds), resulting in denial of service (GitHub Advisory).

Indicators of compromise

  • Network: Repeated inbound TCP connections to the Mongoose TLS listener that terminate immediately after the TLS handshake begins, without completing; connections sending exactly 512-byte TLS records with malformed extension blocks.
  • Logs: Mongoose error log entries such as not a client hello packet or abrupt connection termination events during TLS handshake; process crash or restart events logged by the OS or supervisor.
  • Process: Unexpected termination or restart of the Mongoose process/worker; core dump files generated by the Mongoose process in the working directory.
  • System: Repeated process supervisor restarts of the Mongoose service in a short time window, indicating crash-loop behavior (GitHub Advisory).

Mitigation and workarounds

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.

Community reactions

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).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Unknown

devel

mongoose

Not Affected

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-141471CRITICAL9.1
  • NixOS logoNixOS
  • mongoose
NoYesDec 01, 2026
CVE-2026-141511HIGH8.7
  • NixOS logoNixOS
  • mongoose-lib
NoYesDec 01, 2026
CVE-2026-141472HIGH8.7
  • NixOS logoNixOS
  • mongoose
NoYesDec 01, 2026
CVE-2026-141510MEDIUM5.9
  • NixOS logoNixOS
  • mongoose
NoYesDec 01, 2026
CVE-2026-142248LOW2.3
  • NixOS logoNixOS
  • mlflow
NoNoDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management